Welcome to the "Formatting Numbers" Practice Lab. In this module you will be provided with the instructions and devices needed to develop your hands-on skills.
Already have an account? Sign In »
Welcome to the Formatting Numbers Practice Lab. In this module you will be provided with the instructions and devices needed to develop your hands-on skills.
The following exam objective is covered in this lab:
2.1 Declare and use variables of primitive data types
It will take approximately 15 minutes to complete this lab.
Exercise 1 - Formatting Numbers
The toFixed() method helps to display the number with the required number of decimal values. This method returns a string value. The toFixed() method takes a single parameter. You can also use this method without any parameter.
The toPrecision() method helps to display the number with the required length or precision. This method also returns a string value. The toPrecision() method takes a single parameter that is optional.
In this exercise, the first task will be to download the Visual Studio Code workspace from the Intranet and create a new HTML page named Formatnum.html in the Calculator workspace.
After completing this exercise, you will be able to:
IT & Cybersecurity certification hands on practice labs and practice exams for certifications and skill development.
See the full benefits of our immersive learning experience with interactive courses and guided career paths.