this post was submitted on 26 Apr 2024
6 points (80.0% liked)
JavaScript
1982 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Q2: Which is more efficient? Code blocks do 2 different things so cannot compare. What gives?
Oh, Sorry for inconvenience. I will update this question
No inconvenience—I like these kinds of things but then another question had a typo in it (
varx
instead ofvar x
) and one of the options was ‘Error’ but again that was incorrect. It’s probably worth running these snippets just to make sure :)