“ and ” need to be converted to regular double quotes (") or single quotes so your code can be copy/pasted into the console without having to convert them all.
the character you used for the spread operator (…) needs to be converted to three periods (.) for copy/paste purposes. I think it's also important to note in the article that the spread operator is ES6.
grammar/word errors:
"Get random value form the array" title > needs to be "from array"
yes, I totally agree that if you are going to have code in your article make sure that it's valid!!! that's more important than it being pretty. you could use codepen or similar to ensure it actually runs.
re: 13 useful JavaScript array tips and tricks you should know VIEW POST
FULL DISCUSSION“
and”
need to be converted to regular double quotes (") or single quotes so your code can be copy/pasted into the console without having to convert them all.the character you used for the spread operator (…) needs to be converted to three periods (.) for copy/paste purposes. I think it's also important to note in the article that the spread operator is ES6.
grammar/word errors:
"Get random value form the array" title > needs to be "from array"
Great article, thanks for posting! :)
yes, I totally agree that if you are going to have code in your article make sure that it's valid!!! that's more important than it being pretty. you could use codepen or similar to ensure it actually runs.