Skip to content

Instantly share code, notes, and snippets.

.taille img{
height:30px;
width:30px;
}
#footer{
background: rgba(0, 0, 0, 0.8);
color:white;
font-size: 0.7rem;
r
@FaroukDev
FaroukDev / index.html
Created March 11, 2019 20:03
Quete 1 JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Quete 1</title>
</head>
<body>
<script src="quete1.js"></script>
Début algorithme MON_ALGO
nbrSaisiUtilisateur = "nbr entier saisi par l'utilisateur"
Tant que nbrSaisiUtilisateur:
| afficher "Bienvenue à la wild"
Fin Tant que
Fin algorithme MON_ALGO
/* Exo jsPOO */
class Person {
constructor(name,age){
this.name = name;
this.age = age;
}
tellMyName() {
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log("quel age avez-vous?")
process.stdin.on('data', (age) => {
if(isNaN(age)){
console.log("Veuillez entrer un chiffre")
}else if(age < 99){
console.log(2019 - age);
process.exit()
const assert = require('assert');
// ... Ton code ici ...
class BankCustomer {
constructor(name){
this.name = name;
const assert = require('assert');
// ... Ton code ici ...
class BankCustomer {
constructor(name, code_cb){
let name_priv = name;
let code = code_cb;
this.name_perso = () => name_priv;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
var cowsay = require("cowsay");
console.log(cowsay.say({
text : "Hello boynod",
e : "oO",
T : "U "
}));
// or cowsay.think()
.banner{
/* background-color: #FF4900; */
background: repeat url("https://image.noelshack.com/fichiers/2019/14/3/1554305427-wrapper-bg.jpg");
display: flex;
justify-content: space-evenly;
color:white;
padding-bottom: 2%;
}