Explore Properties and Methods
Properties & Methods
Let's explore properties and methods!
Explore:
- Change the
firstName
variable. What happens? - Change the number in parentheses in
toFixed()
. What happens? - Change the number in front of
toFixed()
. What happens?
let firstName = 'Jeremy'; // Declare and assign the firstName variable// Propertiesconsole.log(firstName.length);console.log(Number.POSITIVE_INFINITY);// Methodsconsole.log(firstName.toLowerCase());console.log(1234.56789.toFixed(3));