let string = 'hi';
const number = 5;
var boolean = true;
let undef;
let set = number+1;
console.log(string);
console.log(number);
console.log(boolean);
console.log(string,number,boolean);
console.log(string + number + boolean);
console.log(undef);
console.log(typeof string);
console.log(typeof 5);
console.log(typeof boolean);
console.log(set);
set--;
console.log(set);
set++;
set++;
console.log(set);
console.log(set+3);
console.log(Math.floor(Math.random()*1001));
Just Some Basic JavaScript
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.