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
| class Animal { | |
| function groupPhoto(photo: boolean); | |
| console.log("Smiles, everybody, smiles!") | |
| } | |
| class Dog extends Animal { | |
| patte: boolean = true; | |
| } | |
| class TerreNeuve extends Dog { | |
| color: boolean = true; | |
| } |
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
| <section> | |
| <div class="container rules"> | |
| <div class="row rulesplace"> | |
| <div class="col-md-12"> | |
| <h4 class="rulestitle"><strong>The Rules of the Game</strong></h4> | |
| <p>The object of Tic Tac Toe is to get three in a row. One player is known as X's and the other is O's. Players alternate placing their X's and O's on the game board until either player has three in a row, or all nine squares are filled. X's always go first, and in the event that no one has three in a row, the stalemate is called a cat game.</p> | |
| </div> | |
| </div> | |
| </div> |
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 ville = "La Loupe"; | |
| let âge = 40; | |
| const dob = "27th February 1978"; | |
| let sentence = `J'habite à ${ville}, j'ai ${âge} ans et je suis née le ${dob}.` | |
| console.log(sentence) |
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 profile = { | |
| name: 'Alex', | |
| getName: function () { | |
| return () => this.name; | |
| } | |
| } | |
| console.log(profile.getName()()); |
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
| Variables | |
| nombreSaisie | |
| resultat <- "Bienvenue à la wild | |
| DEBUT | |
| Afficher "Taper un nombre de 1 à 10, SVP: " | |
| Demander nombreSaisie | |
| nombreSaisie <- n | |
| r <- n - 1 | |
| Afficher resultat |
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
| To: | |
| bettencourt.liliane@loreal.com | |
| Cc: | |
| laurentlucas@gmail.com | |
| paulmorea@gmail.com | |
| maxime.cornuau@wcs.com | |
| victor.leduc@gmail.com | |
| martin.bonadieu@gmail.com |
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 address = { | |
| city: "Lyon", | |
| state: "FR", | |
| zip: 69001 | |
| }; | |
| const sportList = ['Football', 'BasketBall']; | |
| const otherSportList = ['Boxe', 'Judo']; | |
| function display(address = {city: 'La Loupe'}, sportList, ...rest) { |
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
| class Monster { | |
| constructor (name, health, ...args) { | |
| this.name = 'Nessie' | |
| this.health = 100; | |
| this.size = 90; | |
| this.color = 'purple'; | |
| this.habitat = 'water'; | |
| this.exterior = 'hairless'; | |
| this.food = 'plankton'; | |
| } |
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
| class Monster { | |
| constructor(options) { | |
| this.name = name; | |
| this.health = 100; | |
| } | |
| heal() { | |
| return this.health += 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
| process.stdin.resume() | |
| process.stdin.setEncoding('utf8') | |
| console.log('What\'s your age ? ') | |
| process.stdin.on('data', (number) => { | |
| if (!isNaN(number) && number < 99) { | |
| console.log('You were born in ' + (2018 - number)) | |
| process.exit() | |
| } else { |