Skip to content

Tag: javascript

how do I create a string with an escaped open parens?

consider the following So, how do I set s to ‘(‘? Answer You don’t. You’re confused about the value of a string and its representation (whence Python repr() function). A parenthesis is not a special character in a JavaScript string, so it will never be escaped in its canonical “c…

Send multiple strings as separated values

I want to make multiple emails as strings to be separated values. I’m trying something like this: What am I doing wrong? How to correctly send them ​​to be separated? Answer ‘info@user-mail.com’ && ‘info@admin-mail.com’ is interpreted as a boolean by javascript. Indeed, a…