do ... while loop
do { Statement } The while (condition); ------------- the while (condition) { Statements; }
break and continue statements
break out of block
When the cycles continue Jumps
break statement and continue statement without parameters only for the innermost loop
<Label> tag
top :for(var i=0;i<10;i++){ if(i == 9){ break bottom; } } bottom: console.log('this is bottom');
Basic data types:
Digital contain (integer and floating point)
There are a = 1,213 ;
Quoted string "Content" 'Content'
was $ hello = ' abc ' ;
Boolean true and false true and false
var a = true; or var a = 0 or ""
null null
There are a = '' ;
undefine undefined
There are a;
object - array array
There ar = array ( ' asd ' , ' sdsd ' ); There ArR 1 = [ ' 123 ' , ' abc ' ];
function method
function funname( var a;){ console.log(a); } There are x = 10 ; funname(x);
typeof operator
alert(typeof(a3)); if(typeof(a3) == 'boolean'){ Alert ( ' I'm a Boolean value ' ); } 1.0^5