Chore(DPxAI): fixed formatting

This commit is contained in:
oumaimafisaoui 2024-08-19 20:12:00 +01:00 committed by zanninso
parent 09e24ff227
commit 73cb5552e9
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ console.log("flour", 200); // both arguments will appear in your console
### Methods ### Methods
Methods are functions called from another value. For example, toFixed is a method that formats numbers: Methods are functions called from another value. For example, ``toFixed`` is a method that formats numbers:
```js ```js
let num = 10 / 3; let num = 10 / 3;
@ -48,7 +48,7 @@ console.log(num.toFixed(2)); // -> '3.33'
### String Manipulation with Methods ### String Manipulation with Methods
Using the .slice method to cut parts of a string: Using the ``.slice`` method to cut parts of a string:
```js ```js
let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";