| Are you sure? Your comment contains a minor syntax error. Should you have been unable to submit it, or should people not be able to view it, until you correct it? >My answer usually is “are you sure? “.
^
Line 1:
Syntax error: "“" not allowed here.
JavaScript is quite forgiving, but that's usually okay. If something doesn't work it's usually not the end of the world.In this case everyone correctly read your second opening quotation mark as a closing quotation mark. This allows us to focus on what you're saying (functionality.) If we couldn't figure out why you included some typos, we would just ignore that part and focus on the rest of your comment. When someone replies with the nitpicking style it doesn't help anyone. (In fact my first version of this comment was downvoted, before I wrote out the rest of my explanation.) I think all the leniency in front end JS is pretty good for the same reason. It lets us communicate, and the sandboxed client environment (browser security is built assuming web sites could be malicious) means that the stakes are quite low. |