top of page
Search

Variables

  • zakariyesahid96
  • Jan 26, 2022
  • 1 min read
  • 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

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page