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

Await in a for loop

How to Await in a for loop

Random String

Random String với độ dài tuỳ chọn

kiểm tra email trong javascript

kiểm tra email trong javascript

promise in javascript

promise in javascript

encode/decode base64 with JS

Encoding to base64 is done with the btoa command