4 ms·
You can do something similar in JavaScript > const love = "love"; > { // Section > console.log(`What is ${love}`); > }
by Bilal_io 4y ago
You can do something similar in JavaScript
> const love = "love";
> { // Section
> console.log(`What is ${love}`);
> }
- ilyash 4y agoNot the same ergonomic. The language doesn't "understand" it's a section (no opportunities listed in the original comment).
- zdragnar 4y agoActually, it does, though the only real use is with the `break` keyword for breaking out of a labelled block (or break / continue in a for loop): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... Things like stack traces don't track them, unfortunately.