You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asabeneh edited this page Aug 26, 2019
·
5 revisions
Explain the following questions in your own words
What is the difference between forEach, map, filter and reduce ? Explain these using your own words
Explain the difference between function declaration and arrow function ?
Explain the difference between find and findIndex ?
If you like to filter out one object element in an array which method do you like to use: filter or find ? Explain
Explain the difference of var, let and const when we declare a variable ?
In English language some words come more often than others to a sentence. Write a function called mostFrequentWords it takes a sentence or a paragraph as a parameter and return an array of objects. The object is the word and its number of occurrence in the paragraph or in the sentence.
console.log(mostFrequentWords(paragraph))
Write a function called sumOfNumbers. It takes unlimited number of integers as parameters and it returns the sum.
Implement this function using function declaration
Implement this function using arrow function
Write a function which calculate mean, median and range of an array.
A junior developer structure student name, skills and score in array of arrays which may not easy to read. Destruction the following array name to name, skills array to skills, scores array to scores, JavaScript score to jsScore and React score to reactScore variable.