Lấy tháng hiện tại trong javascript
date,tipjs,function
Lấy tháng hiện tại trong javascript
const getMonth = (fillFlag=true) => {
const mon = new Date().getMonth() + 1
const monRe = mon
if (fillFlag) mon < 10 ? `0${mon}` : mon
return monRe
}
console.log(getMonth());//5Có thể bạn đã miss một số snippets code
try/catch es10
An update for developer convience allows the use of try/catch without an explicit e Error reference in the catch call.
Async await in javascript
Async await in javascript
Kiểm tra định dạng email bằng Javascript
Kiểm tra định dạng email bằng Javascript
Đếm có bao nhiêu items giống nhau trong một array
reduce javascript. Đếm có bao nhiêu items giống nhau trong một array
encode/decode base64 with JS
Encoding to base64 is done with the btoa command