30
loading...
This website collects cookies to deliver better user experience
let
keyword as follows:let name = "Sumit"
var
keyword but using let
is newer way and better practice).name
' which is currently storing 'Sumit'. We can now store any new data in that same variable called name
like:
name = "Paris"
. Now our variable is storing new data called "Paris" instead of the old "Sumit".let recipeName = "London"
😅let
, const
etc and these shouldn't be used as variable namesconst
as shown in the image below: