Javascript fundamental and tricks

Full form of generic term

DRY: Do Not Repeat Your Code

 
Comparing two variable or operator

Two ways

var guess = 2;
var newguess = "";

guess ==newguess;
guess === newguess;

Here 2 == will only checking for string where as 3 times === will check strictly type.
 

Comments

Popular Posts