Is there a way through some sort of meta or pre-processor to tell JavaScript that the word AND equates to && and the word OR equates to || and <> equates to !===?
Maybe equate THEN to {
END to }
NOT to !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. Don’t do it.
… well, there is a way, but don’t do it anyways…
Here it is….
But, DO NOT DO THAT! You could also perform the replacements server-side, but DON’T DO THAT EITHER!
Doing it server-side increases the strain on your server, doing something that could be avoided by just remembering how to write JavaScript correctly.