Learn Javascript online by solving coding exercises.
- What: JavaScript challenges from JSchallenger.com. It includes my own code in case I got it right as well as challenge's author code.
- Why: Just in case someone is starting, as I am currently, to learn JS and wants to practice.
Big thanks to Erik Kückelheim, the author of JSchallenger.com. It's not easy to find such good exercises for free.
- Check if a number is even
- Multiplication, division, and comparison operators
- Comparison operators, strict equality
- Check if a number is a whole number
- Check whether a string contains another string and concatenate
- Find next higher natural number that is divisble by y
- Round a number to 2 decimal places
- Split a number into its digits
- Find the correct word by incrementing letters in alphabet
- Clear up the chaos behind these strings
- Return the percentage of a number
- How many times does a character occur?
- Return the next higher prime number
- Sort an array of strings alphabetically
- Sort an array of numbers in descending order
- Return last n array elements
- Sum up all array elements with values greater than
- Return the average of an array of numbers
- Check if all array elements are equal
- Remove a specific array element
- Create a range of numbers
- Return the longest string from an array of strings
- Merge an arbitrary number of arrays
- Merge two arrays with duplicate values
- Check if two dates fall on the exact same day
- Check if two dates are equal
- Check if one date is earlier than another
- Add n days to an existing date
- Check if two dates are within 1 hour from each other
- Return the number of days between two dates
- Calculate difference between two dates in hours, minutes, and seconds
- Return the next nearest quarter hour of a date
- Accessing object properties two
- Accessing object properties one
- Accessing object properties three
- Remove a property from an object
- Swap object keys and values
- Add property to each object in array
- Merge two objects with matching keys
- Extracting information from objects
- Replace empty strings in object with null values