[front end notes] nodejs introduction learning notes (CommonJS version)

The version number of node stable version is even Now node is supported by default modularization In Node, a js file is a module Each variable in the js module can be accessed independently of the other variables in the js module. Therefore, it is not possible to prevent the repetition of a function in the js module exports exposes proper ...

Added by Transwarp-Tim on Tue, 08 Mar 2022 10:38:53 +0200

The application of RPC technology and its framework Sekiro in crawler reverse is a shuttle for encrypting data!

What is RPC RPC, English RangPaCong, Chinese let the reptile, designed to open the way for the reptile, kill everything every second, and let the reptile unobstructed! Just kidding, in fact, RPC is a Remote Procedure Call, which is a technical idea rather than a specification or protocol. In fact, the birth of RPC is inseparable from the de ...

Added by dnast on Tue, 22 Feb 2022 06:06:43 +0200

Understand prototype / prototype chain

For the front-end partners, whether novices or old birds, I think they have been tossed about the prototype. It's always a vague feeling. If the prototype doesn't understand, how can you say you're the front-end siege lion?About objectsWhen it comes to object-oriented (OO), your first reaction must think of concepts such as class, object and in ...

Added by Fitzlegend on Sat, 12 Feb 2022 05:28:30 +0200

JS Foundation: four inheritance methods in JavaScript & instanceof implementation

JS Foundation: four inheritance methods in JavaScript & instanceof implementation preface If you don't know much about the prototype chain and type judgment of JS, it is recommended that you first read the following two articles and then come back to understand the principle and purpose of this article Prototype: Prototype Chain Foun ...

Added by AliasXNeo on Thu, 10 Feb 2022 16:48:11 +0200

Golden three silver four, those brain burning JS interview questions and principles

Q: Is JS code executed sequentially? A: During the execution of JS code, it is necessary to promote variables first, and the reason why variable promotion is needed is that JS code needs to be compiled before execution 1. Variable promotion Variable and function declarations will be stored in the variable environment, and the default v ...

Added by 9three on Wed, 09 Feb 2022 14:55:05 +0200

JS object inheritance

Prototype chain inheritance Idea: let an instance object replace the prototype of the constructor, then the new instance object from the constructor has all the properties and methods of the current object and the methods on the prototype chain. function Parent(age) { this.name = "father"; this.age = age; ...

Added by payjo on Wed, 05 Jan 2022 23:16:21 +0200

Creating private members in JavaScript

The private keyword in an object-oriented programming language is an access modifier that can be used to make properties and methods accessible only in declared classes. This makes it easy to hide the underlying logic, which should be hidden and should not interact with the outside of the class. But how do you implement similar functions in ...

Added by chuspy on Wed, 08 Dec 2021 02:18:35 +0200