tags: js study notes javascript
Compiler (parsing the code into a structure that the browser can understand): lexical analysis / AST abstract syntax tree / constructing code that the browser can execute
Engine (V8 engine, webkit kernel): Variable promotion / Scope, closure / Variable object / Stack memory / GO, VO, AO, EC, ECStack
let a = { n : 10 };
let b = a;
b.n = 20;
console.log(a.n); //20
let a = { n : 10 };
let b = a;
b = { n : 20 };
console.log(a.n); //10
Engine processing flow chart:

Interview questions:
let a = { n : 10 };
let b = a;
b.m = b = {n: 20 }; //that is, b.m = {n: 20} b = {n: 20}
console.log(a); //{n:10,m:{n:20}}
console.log(b); //{n:20}
let x = [12,23];
function fn(y){ //that is, y = x;
y[0] = 100;
y = [100];
y[1] = 200;
console.log(y); // [100,200]
}
fn(x);
console.log(x); // [100,23]
Original link: https://zhuanlan.zhihu.com/p/130708277 ProcessFunction Definition The ProcessFunction function is a low-order flow processing operator that can access all (non-looped) basic build block...
When configuring nginx, I found that Nginx complained about insufficient memory. Thought of the top command. In the process of using Linux, as an administrator, the top command is one of the most freq...
Stack memory The results are 12 13 12, respectively. What is the difference between Null and undefined questions - Null and undefined questions? 1, definition (1) Undefined: It is all default values ...
Web browser compatible processing 1. Do not use display:flex (flexible layout) when developing PC-side web pages, because it is not compatible in some browser versions, for example, IE11 supports it, ...
Use object with flash...
First, create a file browserVersion.js middleware in the middleware folder Second, the statement nuxt.config.js...
Environment: Open the console to view the browser version: As shown above, the fire fox browser 6.0, while the latest version is 95.0, which is very different; Agent debugging: Open the console to rep...
One. Stack 1)Stack concept: The stack is a linear table that is limited to the end of the table. Since the end of the tail is to be inserted, delete, etc., it has a special meaning, referring to the e...
Look at the following piece of code #include<bits/stdc++.h> using namespace std; int main() { int a,b; //Stack printf("%x\n%x\n"...
1. Kafka Senior Consumer High-end consumers are a double-edged sword. On the one hand, it simplifies programming. On the one hand, because the programmers participate in too few functions, the control...