Convert Array-like to True Array

object,array,tipjs

This is cool! Learning something new @wesbos ES6 course 🔥

const nodeList = document.querySelectorAll('ul li');

// Method 1: Convert to true Array
Array.from(nodeList);

// Method 2: Convert to true Array
[...nodeList];

// Now you can use map and other methods to loop

Có thể bạn đã miss một số snippets code

Rest Operator for Objects

Now we can use rest on the properties of an Object. It allows us to explicitly extract certain named variables, and assign any uncalled variables into a catchall Object.

Kiểm tra định dạng email bằng Javascript

Kiểm tra định dạng email bằng Javascript

await axios get

await axios get

Lấy ngày hiện tại trong javascript

Lấy ngày hiện tại trong javascript

Ajax, call jQuery POST to node.js expressjs

Ajax, call jQuery POST to node.js expressjs