I use Aptana Studio to code JavaScript.
When I write string with </, there will be warning saying
‘<‘ + ‘/’ + letter not allowed here
But it does not trigger error in browsers.
what does </ mean in JavaScript?
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.
For inline scripts (e.g, using
<script>), some HTML parsers may interpret anything that looks like</this(especially</script>) as an HTML tag, rather than part of your source code. Your IDE is trying to keep you from typing this by mistake.This means that, if you’re using an inline script, you can’t have a
</tag>as a constant string in JavaScript:You’ll need to break it up somehow to keep it from being interpreted as a tag:
Note that this only applies to inline scripts. Standalone scripts (e.g, a
.jsfile) can have anything they want in them.