Make sure to test all your answers in the console.
parseInt. Then answer the following questions.
"ffff" represents a hexadecimal number. Write an expression parseInt(...) that would return the number that this string represents. parseInt do if it is called with a string it cannot properly process? Math library. Then answer the following questions (do NOT use experimental methods; those marked with a little symbol on their side):
r. x is less than 1 in absolute value. Math.log to write an expression that would compute the base 2 logarithm of the number n. Math.random and Math.floor to write an expression that produces a random integer from 0 to 2 (i.e. 0, 1 or 2). x/+0 for x a finite number can have 3 different values, depending on what value x has. List all 3 values along with examples of x values that produce them.