3 ms·
I'd expect your example to return a syntax error as those aren't single or double quotes. Try: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"].map(parseIn
by inferiorhuman 8y ago
I'd expect your example to return a syntax error as those aren't single or double quotes. Try:
["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"].map(parseInt);
- duckerude 8y agoBackticks are used for template literals. Try evaluating `2 + 2 = ${2 + 2}`.
- inferiorhuman 8y agoThose weren't backticks (`) either. They were "smart" quotes (’ -- you may need a different font to view the differences more readily ’ vs ').
- rounce 8y agoBut you understood what they meant right?