top of page
Search

Variables

zakariyesahid96
  • 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
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page