Added nested loop example and some more comment in other examples.
This commit is contained in:
parent
0b48aa3e0c
commit
d67c541824
5 changed files with 137 additions and 0 deletions
|
|
@ -40,3 +40,22 @@ print(s2) // -> [1, 7, 3]
|
|||
tail = [10, 20]
|
||||
combined = arr + tail
|
||||
print(combined) // -> [1, 7, 3, 10, 20]
|
||||
|
||||
/* Expected output:
|
||||
[1, 2, 3]
|
||||
3
|
||||
5
|
||||
4
|
||||
[1, 2, 3, 99]
|
||||
99
|
||||
[1, 2, 3]
|
||||
42
|
||||
[1, 42, 3]
|
||||
4
|
||||
[1, 7, 42, 3]
|
||||
42
|
||||
[1, 7, 3]
|
||||
[7, 3]
|
||||
[1, 7, 3]
|
||||
[1, 7, 3, 10, 20]
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue