This file contains 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
<!-- views/pages/about.ejs --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<% include ../partials/head %> | |
</head> | |
<body class="container"> | |
<header> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Quete Walking Dead</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> |
This file contains 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 { |
This file contains 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 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 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 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: | |
[email protected] | |
Cc: | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |
This file contains 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 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 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) |
NewerOlder