Variables In Javascript

 const accountID = 1445

let accountEmail = "deba@gmail.com"
var accountPassword = "1245"
accountCity = "Cuttack"
let accountState;

//accountID = 2

accountEmail = "deba@yahoo,com"
accountPassword = "2255";
accountCity = "Bbsr";
/*
Prefer not to use var
because of issue in block scope and functional scope*/
console.table([accountID,accountEmail,accountPassword,accountCity,accountState]);

Comments

Popular posts from this blog

AMAZON HOME PAGE CLONE PROJECT

Array in Javascript

Array in function Javascript