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());//3

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

Detect when your site is visible to users

Detect when your site is visible to users

Async await in javascript

Async await in javascript

Converting Object to an Array

Converting Object to an Array

10 mẹo sử dụng array và object trong javascript

10 mẹo sử dụng array và object trong javascript

try/catch es10

An update for developer convience allows the use of try/catch without an explicit e Error reference in the catch call.