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 assert = require('assert'); | |
class BankCustomer { | |
constructor(name, code) { | |
let niqueName = name | |
let niqueCode = code | |
this.getName = () => { | |
console.log(niqueName) |
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
<h1>The Top 100 Movies of the 20th Century</h1> | |
<div [ngClass]="{'vital' : showMovies}"> | |
<div class="card"> | |
<img src="https://image.tmdb.org/t/p/w185/wOBKAoUJZb5qTsWv5XXvVV2vUzz.jpg" class="card-img-top" alt="movie"> | |
<h5>Movie</h5> | |
<p>This card has supporting text below as a natural lead-in to additional content.</p> | |
</div> | |
<div class="card"> | |
<img src="https://image.tmdb.org/t/p/w185/9O7gLzmreU0nGkIB6K3BsJbzvNv.jpg" class="card-img-top" alt="movie"> |
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
<!--The content below is only a placeholder and can be replaced.--> | |
<div style="text-align:center"> | |
<h1> | |
Welcome to {{ title }}! | |
</h1> | |
<app-user-profile></app-user-profile> | |
<app-sign-up></app-sign-up> | |
<router-outlet></router-outlet> |
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 Person { | |
constructor(name, age) { | |
this.name = name; | |
this.age = age; | |
} | |
tellMyName() { | |
console.log(`I am ${this.name}`) | |
} | |
tellMyAge() { | |
console.log(`I am ${this.age} years old`) |
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
import { Component, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-sign-up', | |
templateUrl: './sign-up.component.html', | |
styleUrls: ['./sign-up.component.scss'] | |
}) | |
export class SignUpComponent implements OnInit { | |
constructor() { } |
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('Quel âge as tu ? ') | |
process.stdin.on('data', (nombre) => { | |
if (nombre < 99 && nombre >= 0 ) { | |
let age = 2019 - nombre | |
console.log('Tu es née ' + age) | |
} else { | |
console.log('Pas compris !') |
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('Quel âge as tu ? ') | |
process.stdin.on('data', (nombre) => { | |
if (nombre < 99){ | |
let age = 2019 - nombre | |
console.log('Tu es née ' + age) | |
} else { | |
console.log('Pas compris !') |
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 demande = Number(prompt('Quel âge as tu ?')) | |
if (demande < 99){ | |
alert('Tu es née en ' + 2018 - demande) | |
} else { | |
alert(" Pas compris !") | |
} |
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
function hello(name: string) { | |
console.log("Hello " + name); | |
} | |
var firstName:string = "bob"; | |
hello(firstName); | |
hello(firstName + " marley"); | |
function concat(a:string, b:string):string { |
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"> | |
<title>mot</title> | |
</head> | |
<body> | |
<script src="../js/hello.js"></script> |