Skip to content

Instantly share code, notes, and snippets.

@zinoojs
Last active October 9, 2018 04:15
Show Gist options
  • Save zinoojs/d458cf31e046be882edcda32e4ece24e to your computer and use it in GitHub Desktop.
Save zinoojs/d458cf31e046be882edcda32e4ece24e to your computer and use it in GitHub Desktop.
Test for JS
var x =typeof("76");
var y = typeof("turtle");
if(y == "string" && x == "number"){
console.log(x+y);
}else{
console.log(y[4]);
}
ans => n
var x =1;
for( ; x < 6 ; x += 2){
x = x*x;
}
console.log(x);
ans => 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment