what is var javascript code example
Example 1: js variable
var Number = 5;
var String = "Hi!";
var boolen1 = true;
var boolen2 = false;
var array = [11, "Hi!", true];
var object = {age:11, speach:"Hi!", likes_Bananas:true};
Example 2: js variables
var varExample = "var";
let letExample = "let";
const constExample = "const";
Example 3: js var
var a;
console.log(a);
console.log('still going...');
Example 4: var js
var num = 1:
Example 5: js variables
var cow = 'moo';
let pig = 'oink';
cow = 10;
pig = 10;
const uncuttableGrass = '\/\/';
uncuttableGrass = '___';
Example 6: javascript define variable
var variable1 = "some variable content";