Hacker News new | ask | show | jobs
by inferiorhuman 2811 days 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);

1 comments

Backticks are used for template literals. Try evaluating `2 + 2 = ${2 + 2}`.
Those weren't backticks (`) either. They were "smart" quotes (’ -- you may need a different font to view the differences more readily ’ vs ').
But you understood what they meant right?