JSchallenger

Pick a challenge

Javascript basics

  1. Check if a number is a whole number
  2. Comparison operators, strict equality
  3. Check if a number is even
  4. Multiplication, division, and comparison operators
  5. Check whether a string contains another string and concatenate
  6. Return the percentage of a number
  7. Split a number into its digits
  8. Round a number to 2 decimal places
  9. Clear up the chaos behind these strings
  10. Find next higher natural number that is divisble by y
  11. Find the correct word by incrementing letters in alphabet
  12. How many times does a character occur?
  13. Return the next higher prime number

Javascript arrays

  1. Sort an array of strings alphabetically
  2. Sort an array of numbers in descending order
  3. Check if all array elements are equal
  4. Return the average of an array of numbers
  5. Remove a specific array element
  6. Return last n array elements
  7. Return the longest string from an array of strings
  8. Create a range of numbers
  9. Sum up all array elements with values greater than
  10. Merge an arbitrary number of arrays
  11. Merge two arrays with duplicate values

Javascript dates

  1. Check if two dates fall on the exact same day
  2. Check if two dates are equal
  3. Add n days to an existing date
  4. Check if one date is earlier than another
  5. Check if two dates are within 1 hour from each other
  6. Return the number of days between two dates
  7. Calculate difference between two dates in hours, minutes, and seconds

Javascript objects

  1. Accessing object properties two
  2. Accessing object properties three
  3. Accessing object properties one
  4. Remove a property from an object
  5. Replace empty strings in object with null values
  6. Extracting information from objects
  7. Swap object keys and values
  8. Merge two objects with matching keys
  9. Add property to each object in array

Javascript Sets

  1. Check if value is present in Set
  2. Convert a Set to Array
  3. Delete element from Set
  4. Get union of two sets
  5. Add multiple elements to Set
  6. Get Intersection of two Javascript Sets
  7. Creating Javascript Sets

Javascript DOM

  1. Accessing multiple elements in the DOM using Javascript
  2. Return the text of an element on the website