1
0
Fork 0
forked from fun/fun

Added nested loop example and some more comment in other examples.

This commit is contained in:
Johannes Findeisen 2025-09-15 03:34:49 +02:00
commit d67c541824
5 changed files with 137 additions and 0 deletions

View file

@ -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]
*/