top of page
Search

Const/var

  • zakariyesahid96
  • Jan 27, 2022
  • 1 min read

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.

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page