#javascript
Read more stories on Hashnode
Articles with this tag
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 ...
// Examples: // '()()' - balanced // '((()))' - balanced // '((()' - not balanced // ')(' - not balanced // ')()(' - not balanced function...
In JavaScript, there are two ways of creating objects, namely Factory functions, and Constructor functions const firstChild = { age: 2, ...