Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 6
Challenge question in JavaScript
I think one of the challenge questions is mistaken. The question is let obj= { 1: 0, 0: 1 }; console.log(obj['1']); The result shows 1, but I think it should be 0, because on position '1' the value is 0.
2 Respostas
+ 3
Dā½ā½ā½ā½7ā£7ā£7ā£ , No problem :)
I have tried the given code in SoloLearn JS editor, and it outputs "0" as expected.
Unfortunately, the provided answer is wrong :/
+ 5
I'm sorry the object was let obj, not object as I write it.