Jul 16, 2024
var firstName
(Akash)let lastName
(Singh)let age
(15)const yearOfBirth
(1999)var
, let
, and const
keywords.undefined
initially.firstName
changes from undefined
to Akash
(string).age
changes from undefined
to 15
(number).undefined
initial values during the memory creation phase.let
and const
variables.defer
attribute in HTML script tag to avoid blocking HTML rendering.