Today in the Internet to see a javascript on the surface of the test, try to look at it, it is normal to do wrong, and then give us the front-end to do, haha, he incredibly also naturally do wrong, the code is probably like this/*1 What does the
1. Data typeJavaScript has a total of six data types. (ES6 added a value for the seventh symbol type)
Value (number)
Strings (String)
Boolean Value (Boolean)
Undefined
Null
Objects (object)
2. Data type
Introduction to JavaScript Syntax 1.JS 1-introduced directly under Note: In Pycharm, Sublime, the shortcut key of single-line comment is ctrl+/, the shortcut key of multiline comment is ctrl+shift+/.3.JavaScript How to output information in a Web
OriginalThe original Book of Jane: HTTPS://WWW.JIANSHU.COM/P/D5FC38506BC4Outline1. What is a module?2, the Basic module mode3. Module Mode concept4. Module structure5. Revelation Mode6, the significance of module programming7. The importance of
OriginalThe original Book of Jane: https://www.jianshu.com/p/78ce11762f39OutlineObjective1. Prototype chain inheritance2. Implement inheritance by borrowing a constructor function3. Combination Mode inheritance4. prototype-Type Inheritance5.
Paste it down:JS Code paste:Interested can refer to the Baidu API document learning: http://developer.baidu.com/map/jsdemo.htmBaidu Map API JavaScript shows people distribution information
Calculate the sum of n numbers and
Recursive implementationfunction getSum(x) { if (x == 1) { return 1; } return x + getSum(x - 1);}var result = getSum(100);console.log(result);
Ask for a number on each digit and: for example:--->5
The history of JS1994, the speed of foreign 7kb/10kb aroundNetscape---livescript (Navigator's browser)90 The birth of the Java languagejdk1.0--"Java"--Netscape and Sun company-javascriptJavascriptMicrosoft company-jsscript (will browser free ...),
Coding problem in JSHttps://www.haorooms.com/post/js_escape_encodeURIComponentI in the front-end JS Add time to create the DOM, there are Chinese characters, found to be garbled on the study of the nextFor character encoding javascript:escape("\u6625
First, the concept of the prototype chainJavaScript is an object-oriented programming language in which everythingin JavaScript is an object , and objects are not independent of each other, but have "inherited" relationships.This "inheritance"
SetObject allows you to store a unique value of any type, whether it is an original value or an object reference.1 Const SET1 = new Set ([1, 2, 3, 4, 5]); 2 3 Console.log (Set1.has (1)); 4//Expected Output:true 5 6 Cons Ole.log (Set1.has (5));
Variable declaration and scope
Avoid declaring global variables
A global variable is either declared outside of any function or is not declared straightforward to use.
Reason: Portability. If you want your code to run
Get the width of the originalvar yuantuwidth = 1920;Gets the current one elementvar dom = Document.queryselector (". Banner");Functions that are called when the window size changesWindow.onresize = function () {Get the width of the viewport with the
In the first chapter, the authors describe various values, but these independent values are meaningless and only reflect their value when placed on a larger frame. So the second chapter begins to introduce the program structure.1, var VS. Let and
When action grows unprofitable, gather information; When information grows unprofitable, sleep. Ursula K. Le Guin, the left Hand of Darkness
Index
Several viewpoints of the author
ECMAScript Standard
Values, Types, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service