top of page
Search
zakariyesahid96

Const/var

The const option makes values stay constant which it doesn’t change, for example :

const hens=4;

hens=4

Consts is used to store the value if pi or days of the week.


VAR is the old variable keyword which was used before let and const as it was out way of declaring variables. There‘s no real reason to use it anymore.

0 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page