Home  >  Article  >  Web Front-end  >  Summary of points to note about JavaScript

Summary of points to note about JavaScript

巴扎黑
巴扎黑Original
2017-06-11 14:05:171210browse

Share JavaScript simple error summary error debugging, it is the notes I took during the learning process to summarize the error summary. When judging the statement, if (x=0), (x==0) and (x===0) are not Similarly, x=0 is a negative value, 0 is false, and if x=10, it is true. x==0 is judged, but it will automatically convert the type. x='10' is the same as x=10. x====10 must be of the same type to judge that the addition and connection operators are different. x='10' y= 5;x+y is equal to 105 at this time; string branch var x = "Hello World!"; The above branch will report an error var x = "HelloWorld!"; This is correct, you can also do this, add a backslash var x = "Hello\

1. Share JavaScript simple error summary error debugging

Summary of points to note about JavaScript

##Introduction: Share JavaScript simple error summary error debugging, yes Summary of the notes I took during the learning process

2. Recommend a code highlighting project--Prism JS

Summary of points to note about JavaScript

Introduction: Prism is a lightweight and easy-to-use code highlighting JavaScript library. The main website is: prismjs.com, Github address: LeaVerou/prism. You can customize it through Customize your download, which is a very good choice and experience. You can also view the effects of some pre-examples through Examples. Whether you pass it yourself

3. Translation of frequently used JavaScript events_Basic knowledge

Introduction: Translation of frequently used JavaScript events

[Related Q&A recommendations]:

javascript - Is there a way to check strings in javasscript or JQuery? Is there any way to convert it to JSON?

The above is the detailed content of Summary of points to note about JavaScript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn