Backbencher.dev

JavaScript Interview Questions 2 - Variables

Last updated on 18 Nov, 2020

Question 1:

How can we declare a variable in JavaScript?

Answer:

We can declare variables in JavaScript using var, let and const keywords.

var a;
let b;
const c = 3;
--- ○ ---
Joby Joseph
Web Architect