Answers for "dynamic array of months js"

0

dynamic array of months js

const months = Array.from({length: 12}, (e, i) => {
   return new Date(null, i + 1, null).toLocaleDateString("en", {month: "short"});
})
Posted by: Guest on July-03-2021

Browse Popular Code Answers by Language