7 ms·
What about this? function v(x) { return x; } v("yeah"); returns undefined
by rtp 11y ago
What about this?
function v(x) {
return
x;
}
v("yeah");
returns undefined
- atirip 11y agoWhat about it? Yes, it returns undefined. Has nothing to do with semicolons. You can add semicolon to every line of your example, or remove each and every one and still it returns undefined.
- CatsoCatsoCatso 11y agoHe's putting it in comparison to the previous example https://news.ycombinator.com/item?id=9718410 https://news.ycombinator.com/item?id=9718410 Newline matters / doesn't matter, the same with the semicolons.