Hàm lày ngày trong tuần javascript
tipjs,date,function
Hàm lày ngày trong tuần javascript
const getWhatDay = () => {
return new Date().getDay() ? new Date().getDay() : 7
}
console.log(getWhatDay());//3Có thể bạn đã miss một số snippets code
Merge Array
How to combine two sorted arrays into one? We can do this easily with the spread operator.
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.
formatdate js
JavaScript’s Date() function object contains a long list of methods that can be used to manipulate the date outcome
lỗi access-control-allow-origin và cách khắc phục
lỗi access-control-allow-origin và cách khắc phục trong express, nodejs
Làm phẳng mảng dùng phương pháp đệ quy
Làm phẳng mảng dùng phương pháp đệ quy