let, const & var in JavaScript

Let

Const

const for arrays and objects (and other non-primitive types)

var

Why use let and const?

--

--

--

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Create A Custom Bootstrap Theme

Why Do We Write super(props)?

What are three dots (…) in Javascript

How to convert CSV to Excel XLSX Spreadsheet in Node.JS

Angular v13 Features

Cordova and React Native Comparison

Why code reviews are good, but not enough

2 Methods to Batch Send Multiple Calendar Items via Outlook Email

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Duncan McArdle

Duncan McArdle

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

More from Medium

Introduction and Basics of JavaScript | Part 4

Introduction to JavaScript

JavaScript, Version Controlling and NoSQL

Javascript: Functions