Case Analysis of JavaScript statement Identifier
This article mainly explains "JavaScript statement identifier instance analysis". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian and go deep into it slowly to study and learn "JavaScript statement identifier instance analysis" together.
JavaScript code
JavaScript code is a sequence of JavaScript statements.
The browser executes each statement in the order it was written.
This example outputs a title and two paragraphs to the web page:
examples
document.getElementById("demo")[xss_clean]="Hello Dolly";
document.getElementById("myDIV")[xss_clean]="How have you been? ";
JavaScript code block
JavaScript can be combined in batches.
Code blocks begin with left braces and end with right braces.
The purpose of a code block is to execute a sequence of statements together.
This example outputs a title and two paragraphs to the web page:
examples
functionmyFunction()
{
document.getElementById("demo")[xss_clean]="Hello Dolly";
document.getElementById("myDIV")[xss_clean]="How have you been? ";
}
JavaScript statement identifier
JavaScript statements usually begin with a statement identifier and execute the statement.
Statement identifiers are reserved keywords and cannot be used as variable names.
Thank you for reading, the above is the content of "JavaScript statement identifier instance analysis", after the study of this article, I believe that everyone has a deeper understanding of JavaScript statement identifier instance analysis, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!