Getting Started
Overview
Random Challenge
Javascript Basics
- 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 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
- Check whether a string contains another string and concatenate
- 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 divisble by y
- Insert character after every n characters (backwards)
- Find the correct word by incrementing letters in alphabet
Javascript Arrays
Javascript Objects
Javascript Dates
Javascript Sets
Javascript DOM
Challenge Rush
// Write a function that takes a value as argument// Return the type of the value function myFunction ( a ) { return }
return
myFunction(1)
'number'
myFunction(false)
'boolean'
myFunction({})
'object'
myFunction(null)
myFunction('string')
'string'
myFunction(['array'])
console.log(typeof 'a') // output: 'string' console.log(typeof false) // output: 'boolean' console.log(typeof 1) // output: number