JSChallenger is an online source for JavaScript coding exercises from beginner to advanced levels.
- Sum two numbers
- Comparison operators, strict equality
- Get type of value
- Get nth character of string
- Remove first n characters of string
- Get last n characters of string
- Get first n characters of string
- Extract first half of string
- Remove last n characters of string
- Return the percentage of a number
- Basic JavaScript math operators
- Check wheter a string contains another string and concatenate
- Check if a number is even
- How many times does a character occur
- Check if a number is a whole number
- Multiplication, division, and comparison operators
- Round a number to 2 decimal places
- Split a number into its digits
- Clear up the chaos behind these strings
- Return the next higher prime number
- Find next higher natural number that is divisible by y
- Get nth element of array
- Remove first n elements of an array
- Get last n elements of an array
- Get first n elements of an array
- Return last n array elements
- Remove a specific array element
- Count number of elements in JavaScript array
- Count number of negative values in array
- Sort an array of string alphabetically
- Sort an array of numbers in descending order
- Calculate the sum of an array of numbers
- Return the average of an array of numbers
- Return the longest string from an array of strings
- Check if all array elements are equal
- Merge an arbitrary number of arrays
- Sort array by object property
- Merge two arrays with duplicate values
- Sum up all array elements with values greater than
- Create a range of numbers
- Group array of strings by first letter
- Define an array with conditional elements
- Get every nth element of array
- Accessing object properties one
- Accessing object properties two
- Accessing object properties three
- Check if property exists in object
- Check if property exists in object and is truthy
- Creating JavaScript objects one
- Creating JavaScript objects two
- Creating JavaScript objects three
- Extract keys from JavaScript object
- Sum object values
- Remove a property from an object
- Merge two objects with matching keys
- Multiply all object values by x
- Swap object keys and values
- Replace empty strings in object with null values
- Extracting information from objects
- Add property to each object in array
- Convert array to object with counter
- Check if two dates are equal
- Return the number of days between two dates
- Check if two dates fall on the exact same day
- Check if two dates are within 1 hour from each other
- Check if one date is earlier than another
- Add n days to an existing date
- Calculate difference between two dates in hours, minutes and seconds
- Return the next nearest quarter hour of a date