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

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

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

Random String

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

Async await in javascript

Async await in javascript

How to reverse an Array?

Reversing an array in JS is really simple with the standard array method. Like below

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