This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const countVowels = (...words) => { | |
let vowels = 0; | |
for( word of words ) { | |
let wordsInLoweCase = word.toLowerCase(); | |
const letters = [...wordsInLoweCase]; | |
for( let letter of letters ) { | |
if ('aeiou'.indexOf(letter) !== -1) { | |
vowels++; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const infoLanguage = [ | |
{language: 'Javascript', extension: '.js' }, | |
{language: 'Python', extension: '.py'}, | |
{language: 'PHP', extension: '.php'}, | |
{language: 'Java', extension: '.java'}, | |
{language: 'HTML', extension: '.html'}, | |
{language: 'CSS', extension: '.css'}, | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"quote" : "Take care of your body. It's the only place you have to live.", | |
"name": "Jim Rohn" | |
}, | |
{ | |
"quote" : "Whatever the mind of man can conceive and believe, it can achieve.", | |
"name" : "Napoleon Hill" | |
}, | |
{ |