var js 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 variables
let numberOfFriends = 1;
numberOfFriends += 3;
const minimumAge = 21;
true;
false;
let isHappy = true;
let numberOfChickens = 6;
Example 4: javascript variable
var user_name = prompt("Please enter your name:", "Type here");
alert("Hello " + user_name);
Example 5: js var
var a;
console.log(a);
console.log('still going...');
Example 6: var js
var num = 1: