c Language Learning: Enumerations and Structures

Constant symbolization:   Use symbols instead of specific numbers to represent numbers in programsconst int a=12;               const fixes a to a value of 12 Enumeration: Enumeration is a user-defined data type that is declared with the keyword enum in the following syntax:enum enumeration type name {nam ...

Posted by robviperx on Sat, 06 Nov 2021 19:49:26 -0700

JavaScript simple meal -- Proxy and reflection

preface The purpose of writing this series of articles on JavaScript simple meal is to record various knowledge points when reading and learning the book JavaScript advanced programming (4th Edition). Although it is a note and summary of reading, I hope it is light, concise and sharp, will not cause reading fatigue, and can take a light ...

Posted by Jay_Seagrave on Sat, 06 Nov 2021 16:39:30 -0700

Take you into the branch statement from zero understanding JavaScript to essence JavaScript

Take you to understand JavaScript from zero to essence (V) JavaScript branch statements 1, What are JavaScript statements Expressions are phrases in JavaScript. A newline phrase or a semicolon ending phrase is a line of statements. A command issued by a JavaScript statement to a browser. Statement tells the browser what to do. Statements usua ...

Posted by merck_delmoro on Sat, 06 Nov 2021 11:47:17 -0700

The Promise object in JS solves the detailed explanation of callback hell cases and allows the code to execute synchronously

Promise object, solve callback hell, and execute code synchronously This article records the knowledge points studied BY: Lin Yi preface: Asynchronous operation is an advantage of JS and brings great trouble. There is a word called callback hell, that is, in a callback function, execute another asynchronous task and nest it all the time, res ...

Posted by nivosh on Sat, 06 Nov 2021 06:57:02 -0700

Red Treasure Book Reading Notes Chapter 4

Variable scope memory The es variable has two different types of data: original value and reference value Original values: undefined, null, boolean, number, string, symbol The variable that holds the original value is accessed by value Reference value: an object stored in memory. It is an object composed of multiple values. JavaScript cannot d ...

Posted by Smruthi on Sat, 06 Nov 2021 05:36:34 -0700

Shallow copy and deep copy of JavaScript

There are a lot of discussions on this topic on the Internet. I sorted it out myself according to various situations. Finally, I can approach the perfect realization of deep copy. Welcome to discuss. Objects in javascript are reference types. When copying objects, you should consider whether to use shallow copy or deep copy. Direct assignment ...

Posted by dougp23 on Thu, 04 Nov 2021 03:39:46 -0700

[introduction to JavaScript zero basics 1] javascript table

🍅 Java learning roadmap:   Thinking map of Java learning route 🍅 Java learning route summary: Brick movers counter attack Java Architects 🍅 Classic Java interview questions: Summary of 208 classic Java interview questions with 100000 words (with answers) 🍅 Introduction: high quality creator in Java field 🏆, CSDN the author o ...

Posted by iceblossom on Tue, 02 Nov 2021 18:53:19 -0700

Five common scenarios and examples of JavaScript deconstruction assignment

Deconstruction assignment syntax is a JavaScript expression. By deconstruction assignment, you can take the attribute / value from the object / array and assign it to other variables. This syntax is a new syntax introduced by ECMAscript 6 specification, which makes it easier to get values from arrays and objects. 1. Extract data Let's tak ...

Posted by amelhedi on Mon, 01 Nov 2021 08:02:24 -0700

Type conversion in js

Type conversion is divided into two types: forced type conversion and implicit type conversion Cast type Forced type conversion mainly refers to three functions: Number(), String(), and Boolean. Manually convert various types of values into numbers, strings, or boolean values Number() There are two main types: one is that the parameter is t ...

Posted by richardwarren on Sat, 30 Oct 2021 23:34:40 -0700

Handwritten Vue router & what is Vue plug-in

In this article, you can learn: Implement your own Vue routerLearn what Vue plug-ins are Learning the notes made by the boss of station b and the implementation of the source code 1.1.3 take you step by step to understand the core principle and implementation of Vue router_ Beep beep beep_ bilibili Use the official Vue router Initialize ...

Posted by richierich on Fri, 29 Oct 2021 20:19:50 -0700