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
| function opposite(number) { | |
| return number *- 1 | |
| } | |
| console.log(opposite(-14)); | |
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
| function multiply(x,y) { | |
| if (y < 0) { | |
| y = -y; | |
| x = -x; | |
| } | |
| if (y > 0) { | |
| return x +multiply(x,y-1) | |
| }else { | |
| return 0 | |
| } |
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
| function boucle(x) { | |
| if (x >= 0) { | |
| console.log(x); | |
| boucle(x-1); | |
| } | |
| } | |
| boucle(10); |
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
| Last login: Tue Sep 4 10:29:52 on ttys000 | |
| ✝ ~ ls | |
| Applications | |
| Background images | |
| Bases de données | |
| Boostnote | |
| Desktop | |
| Documents | |
| Downloads | |
| Dropbox |
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
| body { | |
| font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; | |
| } | |
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; | |
| } |
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
| 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
| 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
| browser-sync start --server --files="css/*.css,*,html" |