This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("ES5"); | |
| //ES5 | |
| const arr = [12,23,54,65]; | |
| for ( let i = 0; i < arr.length; i++ ) { | |
| console.log(arr[i]); | |
| } | |
| console.log("ES6"); | |
| //ES6 | |
| const arr1 = [12,23,54,65,100]; | |
| for (let nombres of arr1 ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Math.pow => Renvoie le carré d'un nombres | |
| console.log("Math.pow "); | |
| const carre = Math.pow(2,2); //Carré de 2 | |
| console.log(carre); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("toFixed"); | |
| //to fixed => décimal aprés la virgules | |
| console.log(pi.toFixed(2)); //Renvoie 2 décimales aprés la virgules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Math.min | |
| console.log("Math.Min"); | |
| //Math.min => renvoie le minimun\ | |
| console.log(Math.min(12,36,5,1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Desctructering | |
| console.log("Destructuring"); | |
| const arr = [12,14,2,8,6,3,1,0]; | |
| console.log(Math.min(...arr)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| browser-sync start --server --files="css/*.css,*,html" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const arr = [12,23,35,69,85] | |
| console.log(Math.min(...arr)); // Renvoie 12 | |
| console.log(Math.max(...arr));// Renvoie 85 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let score = [10,2,3,3,2]; | |
| let doublon = []; | |
| for (let i = 0; i < score.length; i++) { | |
| var temp = score[i]; | |
| for (let j = i+1; j < score.length; j++) { | |
| if (temp === score[j]) { | |
| doublon.push(temp) | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addEventListener('mouseout',function () { | |
| //code | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .grid >*:hover{ | |
| filter: brightness(130%); | |
| cursor: pointer; | |
| } |