Online Home
const countries = ["Norway", "sweden", "Denmark", "New Zealand"];
const startsWithN = countries.filter((country)=>country.startsWith("N"));
console.log(startsWithN)
//Output
["Norwing", "NewZealand"]
No comments:
Post a Comment