Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Javascript Object
How to add multiple object without using array object. (Suppose I wanna add some 10 employee details in array is it possible)
1 Resposta
0
You can create arrays by using the square brackets [] . e.g.
arr=[āoneā,ātwoā,āthreeā]
then use the push method to add more items:
arr.push(āfourā)
just substitute the strings in the array with an object {}