By continuing your visit to this site, you accept the use of
cookies by Google Analytics to make visits statistics.
The
CodeGradX site
provides free programming exercises. Among these exercises are
those listed below. If interested, join today the CodeGradX
community and try to solve these exercises.
You may prefer exercises in other programming languages
Exercises in Javascript
Functions and Closures
min3
find the lowest of three numbers
min4
determine the lowest of four numbers
swapfn
Create a function with swapped arguments
curry
Function curryfication
memoize
Creation of memoized functions
Prototypes and Classes
protochain
Write a fonction that show the
prototype chain
clone
Cloning and inheritance
cascade
Combine methods into a cascade
singletoner
Create a class factory to create singleton classes
Callbacks, Events, Promises, Generators, Workers
cbgcd
Compute GCD with callbacks
cbchain
Chain some asynchronous computations
gfilter
filtering the output of a generator
Distribution