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
| //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
| 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.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("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
| const mot = "nicolewrobel"; | |
| let motInverse = ""; | |
| for (let i = 0; i < mot.length; i++) { | |
| motInverse = mot[i] + motInverse; | |
| } | |
| if (mot === motInverse) { | |
| console.log("Palindrone") | |
| }else { | |
| console.log("no palindrone") | |
| } |
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
| sudo npm update -g |
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
| //Plus grand | |
| const score = [23,78,65,100,89,999,87,1020]; | |
| console.log(Math.max(...score)); | |
| //Plus petit | |
| console.log(Math.min(...score)); | |
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
| header { | |
| height: 700px; | |
| background: url(/img/neonbrand-268902-unsplash.jpg); | |
| background-size: cover; | |
| background-position: center; | |
| box-shadow: 4px 3px 13px 6px #000000c4; | |
| } |
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
| @media screen and (min-width: 425px) { | |
| } |