• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Let or var in JavaScript?

This is my question.

javascriptvarlet
21st Feb 2018, 5:46 AM
Martin Garello
Martin Garello - avatar
3 Answers
+ 11
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
21st Feb 2018, 5:49 AM
jay
jay - avatar
+ 10
For most of the cases... use "let" and "const". https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75
21st Feb 2018, 5:51 AM
Maz
Maz - avatar
0
Thanks
21st Feb 2018, 3:27 PM
Martin Garello
Martin Garello - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Functions in python
0 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
0 Votes
I need advice
0 Votes
Answer please
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Why this code fails even without data race
0 Votes