Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Difference between “var” and “let” Keywords?
Home
JavaScript
Difference between “var” and “let” Keywords?
+2
votes
asked
Jul 16, 2019
in
JavaScript
by
Indian
Difference between
“var” and “let”
Keywords?
#java-script
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 16, 2019
by
Indian
Var
was there from the beginning but the let was introduced in ES2015/ES6.
Let
has block scope and “Var” has function scope
Related questions
+2
votes
Q: Difference between “undefine” and “NULL” Keywords?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
Q: What is let and const in javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
0
votes
Q: What is the difference between let and var in Javascripts?
asked
Sep 28, 2023
in
JavaScript
by
AdilsonLima
javascript-interview-questions-answers
+1
vote
Q: What is difference between Array.splice() and Array.slice() method in JavaScript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
Q: Difference between “==” and “===” ?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
0
votes
Q: Differences between declaring variables using var, let and const.
asked
Dec 11, 2020
in
JavaScript
by
SakshiSharma
#var
const
#var-vs-const
#const-vs-var
0
votes
Q: What is the difference between Let and Var in swift?
asked
Nov 7, 2022
in
Swift
by
Robin
var
let
swift
0
votes
Q: Difference between ‘IS-A’ and ‘HAS-A’ relationship in java?
asked
Jun 17, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
0
votes
Q: Difference between overriding and overloading in java?
asked
Jun 17, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
0
votes
Q: Difference between ‘>>’ and ‘>>>’ operators in java?
asked
Jun 17, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
...