Seven ways to implement inheritance in javascript

Inheritance is the basic concept of object-oriented language. Generally OO language supports two ways of inheritance: interface inheritance and implementation inheritance. Interface inheritance only inherits method signature, while implementation inheritance inherits the actual method. The function in ECMAScript is not signed, so interface i ...

Added by Alith7 on Mon, 18 May 2020 04:00:39 +0300

Function Advancements with javascript

1 Strict mode 1.1 What is a strict mode In addition to providing normal mode, JavaScript also provides strict mode.The strict pattern of ES5 is one way to adopt restrictive Javascript variants.That is, js code is run under strict conditions.Strict mode is only supported in browsers over IE10, and older browsers are ignored.Strict mode makes s ...

Added by wayang_mbeling on Tue, 03 Mar 2020 03:46:22 +0200

Web foundation -- JavaScript&DOM&BOM

JavaScript: Concept: a client scripting language Running in the client browser. Every browser has a JavaScript parsing engine Script language: it can be parsed and executed by the browser without compilation Functions: It can enhance the interaction between users and html pages, control html el ...

Added by pkenny9999 on Sat, 15 Feb 2020 14:36:50 +0200

Some noticeable points about Promise object

By studying Ruan Yifeng's Getting started with ECMAScript 6 , some knowledge points that Promise can easily forget new Promise((resolve, reject) => { reject() resolve() console.log('hello') }).then(() => { console.log('resolve'); }, () => { console.log('reject'); }) for (let ...

Added by bigswifty on Wed, 29 Jan 2020 17:30:45 +0200

Understanding the use and implementation of bind methods

Method Description The bind() method creates a new function that, when called, sets its this keyword to the value provided. Grammar Description fn.bind(thisArg,arg1,arg2,..) Parameter Description thisArg: When a bound function is called, this parameter points to this as the original function runs.This p ...

Added by Jramz on Mon, 20 Jan 2020 03:58:36 +0200

TypeScript Advanced Usage Details

Introduction As a powerful static type checking tool, TypeScript is now visible in many large, medium-sized applications and popular JS libraries.As a weakly typed language, JS modifies the type of a variable without taking a moment to write code, resulting in unexpected runtime errors.However, TypeScript helps us solve this problem during comp ...

Added by coolpravin on Tue, 17 Dec 2019 04:03:07 +0200

From zero on, Promise goes from understanding to implementation

Promise is an object that represents the final completion or failure of an asynchronous operation.It has now become an important solution for asynchronous programming in JavaScript. Before you get even closer to it, there are a few basic concepts to understand. Alternatively, you can find the Here See the full source code. Synchronous and asyn ...

Added by NDK1971 on Mon, 16 Dec 2019 02:10:08 +0200

Homework of Baidu front end college on days 17 to 18 and 16

Finally learn JavaScript! Array related parameters Array shift deletes the first element, pop deletes the last element, and all returned elements are deleted. unshift adds an element at the beginning, push adds an element at the end, splice is used for deletion and modification, slice is used for slicing. *** Data type conversion The + operator ...

Added by delphi123 on Sat, 19 Oct 2019 00:30:31 +0300

[THE LAST TIME]this: call,apply,bind

Preface The last time, I have learned [THE LAST TIME] has always been a series that I want to write, aiming to build up and review the front end. It is also to check and fill in the gaps and share the technology. Welcome to comment on Tucao. The series of articles are first published in the public account [full stack front-end selection], the ...

Added by majocmatt on Thu, 17 Oct 2019 05:30:55 +0300

Soft Day10 - JavaScript Foundation (Variables, Data Types, Operators, Expressions and Statements, Process Control)

Medium soft Day10 JavaScript Foundation Web pages, websites and Applications Page: A separate page Website: Some columns of related pages are grouped together Application: It can interact with users and implement some functions. Introduction to JavaScript What is JavaScript JavaScript is a ...

Added by wrongmove18 on Mon, 23 Sep 2019 09:15:40 +0300