JavaScript Interview Questions 2 - Variables

Published 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;