JavaScript is a scripting language designed for Web page interaction and consists of the following three different parts
ECMAScript, providing core language features
Document Object Model (DOM):D Ocument object models that provide an interface for accessing and manipulating Web page content
Browser (BOM): Browser Object Model, which provides methods and interfaces for interacting with the browser
<script type= "Text/javascript" defer= "defer" charset= "Utf-8" ></script>
The JavaScript code is interpreted from top to bottom, as follows
<script type= "Text/javascript" >function Sayhell () {alert ("</script>");} </script>
When the browser encounters a string </script> thinks it is the end tag, remember not to appear anywhere in the code. However, you can solve this problem by escaping characters, as follows
<script type= "Text/javascript" >function Sayhell () {alert ("<\/script>");} </script>
ECMAScript keywords
Breakdoinstanceoftypeofcase elsenewvarcatchfinallyreutrnvoidcontinueforswitchwhiledebugger* Functionthiswithdefaultif Throwdeletein Try
ECMAScript reserved words, although do not know what to do, but feel pretty tall on the
Abstractenumintshortbooleanexportinterfacestaticbyteexportinterfacesupercharfinalnativesynchronizedclassfloatpackagethrow Sconstgotoprivatetransientdebuggerimplementsprotectedvolatiledoubleimportpublic
This article is from the "严萧" blog, make sure to keep this source http://yplus.blog.51cto.com/7656781/1851206
Understanding JavaScript Advanced Programming Learning