Howdy! could somebody give me an example of a varible
A variable is how data is assigned/contained, and reused.
var myQuestionIs = "Howdy! could somebody give me an example of a variable?";
the variable name myQuestionIs has been declared and assigned a string value
2 Likes
Thanks! I got confused with the words let and var
The transition to let
and const
takes some getting used to
var
as we know it is scoped either locally or globally, let
and const
are the new es6 (javascript) standard and are block level scoped
{block level scope}
let
is generally used when with re-assignment in mind
const
contain a constant assignment that cannot be re-assigned
2 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.