Howdy! could somebody give me an example of a varible :grinning:

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 :smile:


Thanks! I got confused with the words let and var :grinning::grinning:

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


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.