Summary of JS interview questions

Previous points here: ↓ Summary of JS interview questions (I) Summary of JS interview questions (II) Summary of JS interview questions (III) Summary of JS interview questions (IV) Summary of JS interview questions (V) 51. The click event on the mobile terminal is delayed. How long is it and why? How to solve this delay? Reference answer: ...

Posted by pod2oo5 on Wed, 01 Dec 2021 10:26:13 +0100

javascript Foundation (array)

catalogue 1, Initial array 1. Create array 2. Accessing array elements 3. Traversal of array 4. Examples (1.) get the maximum value in the array element (2.) convert array to string   5. Operation of array elements 2, Array sorting algorithm 1. Bubble sorting algorithm 2. Insert sort algorithm  ​   3, Two dimensional arra ...

Posted by deepermethod on Tue, 30 Nov 2021 16:57:22 +0100

JavaScript asynchrony (the third of the three required students) - Episode 3: Promise

concept What's promise? It is a constructor and a solution for asynchronous operation. It is generally used to solve callback hell (nested functions) Let's look at a set of codes first // Load picture function loadImg(src) { const p = new Promise( (resolve, reject) => { const img = document.createElement('img'); ...

Posted by artin on Sat, 27 Nov 2021 03:59:55 +0100

Understand the label function of template string in ES6

Template string is probably a new feature of ES6 that we are familiar with. It allows us to insert variables in the string, wrap lines, etc. it is really very convenient to use. However, ES6 also adds a tag function that is mainly used with template strings.1. What label function?As the name suggests, the tag function is also a function. This i ...

Posted by j007ha on Sat, 27 Nov 2021 01:01:50 +0100

JavaScript Advanced Programming (Red Treasure) Chapter VIII Objects, Classes, and Object-Oriented Programming Reading

JavaScript Advanced Programming (Red Treasure) Chapter VIII Objects, Classes, and Object-Oriented Programming Reading INTRODUCTION: You can think of an ECMAScript object as a Hash list containing a set of name/value pairs, where values can be data or functions. Section 1: Understanding Objects Now let's create an object let person = { n ...

Posted by merlinti on Wed, 24 Nov 2021 21:15:23 +0100

ES6 learn Chapter 2 deconstruction and assignment of variables

prefaceThis note is the second deconstruction and assignment of variables. Link to the original text of this chapter: Deconstruction and assignment of variablesDestructuring assignment ES6 allows you to extract values from arrays and objects and assign values to variables according to a certain pattern, which is called deconstructing.Deconstru ...

Posted by Eclipse on Wed, 24 Nov 2021 03:07:16 +0100

The back-end gives you 100000 pieces of data at a time. How to show it gracefully? What do you examine me?

prefaceHello, I'm Lin Sanxin. In the most popular words, the most difficult knowledge point is my motto. The foundation is advanced, and the premise is my initial intention. Today, I'll talk to you. If the back end really returns 100000 data to the front end, how can we show it gracefully in the front end? (haha, assuming that the back end can ...

Posted by Seraph on Tue, 23 Nov 2021 07:36:32 +0100

[Vue] learning - continuous updating

introduce vue Chinese networkvue githubVue.js is a progressive JavaScript framework for building user interfaces (UIS) Differences between libraries and frameworks What is the difference between the front-end framework and the library? Library Library is essentially a collection of functions. Each time the function is called, a spec ...

Posted by champrock on Sun, 21 Nov 2021 04:31:46 +0100

ES6 of JavaScript (self study)

ES6 introduction    ES6, fully known as ECMAScript 6.0, is the next version standard of JavaScript, which was released in June 2015.    ES6 is mainly to solve the inherent shortcomings of ES5. For example, there is no concept of class in JavaScript, but currently the JavaScript of browsers is ES5 version, and most adva ...

Posted by khovorka on Sun, 21 Nov 2021 01:59:17 +0100

3, Cyclic structure

catalogue 1.var let const 2. Template string 3.while loop 4. Do while loop 5.for loop 6. Loop jump statements (continue,break) 1.var let const For variables defined with var keyword, the variable name can be repeated, and the following variables will overwrite the previous variables. When variables are defined in var mode, they will b ...

Posted by darkhorn on Fri, 19 Nov 2021 16:59:37 +0100