top of page
Search

Array random access

  • zakariyesahid96
  • Jan 31, 2022
  • 1 min read
  • I learnt that arrays are indexed and each element has a corresponding infect which starts at 0.

  • To demonstrate days-monday

  • days(0) Monday

  • It's possible to add two brackets in to demonstrate which index to call such as [1][0] would call the first letter would be T for example.

  • To change I'll demonstrate it like this

let colors=[rad]

Colors[0]= 'red'

"Red".

  • As you can see from the example you need to state what you want to change in a new line.



 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page