Добавить js/DOM/числа.md
This commit is contained in:
5
js/DOM/числа.md
Normal file
5
js/DOM/числа.md
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
### Окргуличть чсило
|
||||
const num = 5.6789;
|
||||
const result = num.toFixed(2); // "5.68"
|
||||
Reference in New Issue
Block a user