top of page
Search
zakariyesahid96

Array random access

  • 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.



1 view0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page