Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Number Methods
The toPrecision() method returns a string, with a number written with a specified length: