top of page
Search
zakariyesahid96

Variables

  • Variables are like labels for values.

  • can store value and give it name so we can know refer back to i later.

  • Use value to do stuff

  • change it later

  • The basic syntax is let and can add whatever after such as let some name= value.

  • To demonstrate,

Let hens=4;

Let rooster=2

Hens +rooster=6;


You can combine with other options by changing the end number such as :

let totalChickens=numhens+numroosters;

total chicken=6

0 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page