📝 Added sandbox (code sketchbook)
This commit is contained in:
parent
b475595f7f
commit
b5daf18b1a
142 changed files with 100702 additions and 0 deletions
6
sandbox/obj_arr_methods/objArr.js
Normal file
6
sandbox/obj_arr_methods/objArr.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const arr = [0, 1, 2 ,3]
|
||||
const arr2 = [1, 2, 3 ,4]
|
||||
|
||||
Object.keys(arr).forEach(key => console.log(`key >>: ${key}`))
|
||||
Object.keys(arr2).forEach(key => console.log(`arr2[key] >>: ${arr2[key]}`))
|
||||
Object.values(arr2).forEach(val => console.log(`val >>: ${val}`))
|
||||
Loading…
Add table
Add a link
Reference in a new issue