Skip to content

sarathsaleem/JavaScriptTasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 

Repository files navigation

JavaScript Tasks

Answer the questions posted by Dmitry Baranovskiy in his blog post and some other common Javascript tasks.

Check the answers in JavaScriptTasks

It basically include intermediated to some extends of advance JavaScript concepts. All the questions are pretty simple but will help you to understand about core concepts JavaScript.

The features in JS like Objects, Arrays, Closures, Prototype etc are covered in this session.

Questions:

  • Find the biggest element in the array of numbers. Use function Math.max for this

  • Transform array of numbers to array of functions that will alert that digits

  • Sort array of objects by number of object properties

  • Write a function which will return you first two times 1, then 2, then 3, then 5 and so on (Fibonacci numbers). Don’t use any global variables.

  • Make this syntax possible: var a = (5).plus(3).minus(6); //2

  • Make this syntax possible: var a = add(2)(3); //5

About

Answers to some common JavaScript tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published