Y
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
duckerude
2811 days ago
Backticks are used for template literals. Try evaluating `2 + 2 = ${2 + 2}`.
link
inferiorhuman
2811 days ago
Those weren't backticks (`) either. They were "smart" quotes (’ -- you may need a different font to view the differences more readily ’ vs ').
link
rounce
2811 days ago
But you understood what they meant right?
link