Skip to main content

Command Palette

Search for a command to run...

JavaScript : Variables

Something which changes over time.

Published
•1 min read•View as Markdown
JavaScript : Variables
S

I am person with keen interest in Application Development and making them live into production. I worked on technologies like HTML, CSS, JavaScript, React.js, Express.js. I am good at reading and writing documentation. I have good analytical thinking to solve a particular problem effectively at low cost.

I worked as Site Reliability Engineer at TCS. Though my role, I worked closely with developers and understood the whole software development life cycle from converting the client requirement into code and going through various stages of testing (QA, Beta, Canary) and finally deploying it to production and this cycle continues.

I am open for Web Developer Roles.

To contact me : subhamsahu1120@gmail.com

Variables are names identifiers for values. We declare variables in javascript using var and let keywords. See both declarations below.

//var declaration
var name;      

//let declaration
let age;

Differences between both declarations,

varletconst
declares a function scope variable if defined inside of a function, otherwise a global/module scope.declares a block scope variable.declares a block scope variable
optionally initializes to a valueoptionally initializes to a valueNeed to initialize while declaration.
declarations are hoisted to the top of the function scope.Not hoistedNot hoisted