Get type of value

// Write a function that takes a value as argument
// Return the type of the value
function
myFunction
(
a
)
{

return
}
Test Cases:
myFunction(1)
Expected
'number'
myFunction(false)
Expected
'boolean'
myFunction({})
Expected
'object'
myFunction(null)
Expected
'object'
myFunction('string')
Expected
'string'
myFunction(['array'])
Expected
'object'

How to solve it

To get the type of a value you can use the typeof operator. console.log(typeof 'a')
// output: 'string'
console.log(typeof false)
// output: 'boolean'
console.log(typeof 1)
// output: number