DEV Community

loading...

Discussion on: 17 Pro JavaScript tricks you didn't know

Collapse
jcubic profile image
Jakub T. Jankiewicz

Please check your code by running it first:

This is syntax error, because it's not valid JavaScript:

for(let i=0; i < arraySize; i++){
       filledArray[i] {'hello' : 'goodbye'};
}
Enter fullscreen mode Exit fullscreen mode

missing =, another is this, that suppose to be true but the character is not zero is letter o and even lowercase.

console.log(0 == 'o')
Enter fullscreen mode Exit fullscreen mode