Fixed a typo (#34686)
This commit is contained in:
@ -47,7 +47,7 @@ nameOfArray[2] = 50;
|
|||||||
|
|
||||||
Code above will assign the value of 50 directly into element [2]
|
Code above will assign the value of 50 directly into element [2]
|
||||||
|
|
||||||
Note - Be careful when trying to assign/access a value to/from an array. If an invalid index isused, like `nameOfArray[-1]` you will encounter a run-time error.
|
Note - Be careful when trying to assign/access a value to/from an array. If an invalid index is used, like `nameOfArray[-1]` you will encounter a run-time error.
|
||||||
|
|
||||||
You can assign multiple values at once while declaring the array using the format below:
|
You can assign multiple values at once while declaring the array using the format below:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user