Exersises


#1

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


#2

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:


#3

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


#4

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


#5

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