In JavaScript, the built-in type detection mechanism is not entirely reliable. This refers to the TypeOf and Instanceof keywords respectively.
Because TypeOf has unpredictable behaviors that often result in unreliable results when detecting data
The difference between a value type and a reference type in JavaScript
a , not stored the same way
L Basic Data type
A variable stores a simple data segment, storing a specific value, and a lightweight way of storing data.
L Reference type
A value
ThoughtThis is a divide-and-conquer algorithm. Splits the original array into smaller arrays until there is only one item for each decimal group, and then merges the decimal group into a large, ordered array, until the last one is the largest array
Search finds keyword strings (canonical expressions, regular expression) in a String object, and returns the first occurrence of a keyword in the target string if the match (that is, a keyword successfully found in the target string), and vice versa,
JS is an object-oriented language, all objectsFirst, what is object-oriented?Simple, let's just say it. There are some things in life, such as (Haha, think of an iphone, for example), and we don't know how it works? But we will press the button,
Https://www.cnblogs.com/kongxy/p/4618173.htmlIn JavaScript, the properties of an object are categorized as enumerable and non-enumerable, which are determined by the enumerable value of the property. The enumerable determines whether this property
The array in JavaScriptToday more comprehensive learning to JS in the array, that is, arrays. Write a blog post to summarize the learning and use of some of the errors in the array and common APIs, to deepen the impression.About the most
An operator1. Basic ConceptsExpression: A phrase made up of constants/variables and operatorsOperands: Constants and variables in an expression become operandsMonocular operator: becomes a single-mesh operator with only one operandMulti-mesh
JavascriptType ConversionsNumber () is converted to numbers, string () is converted to a string, and Boolean () is converted to a Boolean value.JavaScript Data typesThere are 5 different types of data in JavaScript:
String
Number
ArrayArrayProvides a function to store a set of elements sequentially, and can be read and written by index. JavaScript Array can contain arbitrary data types, and each element is accessed through an index.To get Array the length, directly access
First, JavaScript regular correlation methodStr.match (RegExp) functions similarly to regexp.exec (str).Str.search (RegExp) functions similarly to regexp.test (str).1. String.prototype.match ()Retrieves a match and returns an array (no g) that
Math Method Math: Object data type;
math: {} is a key-value pair under window; The property is named Math, and the property value is an object
var obj = {a:1};console.log (OBJ.A); Console.log (window. Math);1. Math.Abs (): Take absolute
001. How to understand heap and stack?JS variables are stored in the stack storage and heap storage, the basic data types of variables stored in the stack, reference data types of variables stored in the heap reference type data address also exists
Suddenly saw a 2010-year old article, the author in the form of chapters introduced to US ECMA-262-3 part of the content, mainly related to the execution context, variable object, scope, this and other language details. The content is short and lean,
Relationship of functions and objectsFunctions can have properties, objects can have attributes, and an operator can be used to new return an instantiated object of a function before the function namefunction fn () {}fn.a = ‘haha‘console.log(fn.a) //
The function in JS does not have the concept of overloadingJS is not like Java, has the concept of overloading, so the function name of the same function, JS will be considered to be the same function, so will output write in the last function of
1. Discard the fractional part, preserving the whole number of partsThe parseint () function parses a string and returns an integer.parseint (string, radix)
parameters
string
JavaScript basic cultivation--a 10-side ambush test of prototype chain surface
In front of the foundation, all skills are floating clouds.
The title is like this.Requires the output of the console to be written out.function Parent() {
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