Articles in this series
const fruits = [ { name: 'Apple', quantity: 20 }, { name: 'Banana', quantity: 35 }, { name: 'Orange', quantity: 50 }, { name: 'Grapes',...
// Calculate the number of vowels in a string const countVowels = string => { const vowels = ['a', 'e', 'i', 'o', 'u']; let count = 0; string ...
In JavaScript, there are two ways of creating objects, namely Factory functions, and Constructor functions const firstChild = { age: 2, ...