Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>cours</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
</head>
<body>
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Gandalf CSS</title>
<link rel="stylesheet" type="text/css" media="screen" href="StyleCSS/gandalf.css">
</head>
<body>
<div class="overlay-image">
<div class="bigfilter">
@Jeremy-san
Jeremy-san / html
Created March 18, 2019 16:17
Exercices Js
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>mot</title>
</head>
<body>
<script src="../js/hello.js"></script>
function hello(name: string) {
console.log("Hello " + name);
}
var firstName:string = "bob";
hello(firstName);
hello(firstName + " marley");
function concat(a:string, b:string):string {
let demande = Number(prompt('Quel âge as tu ?'))
if (demande < 99){
alert('Tu es née en ' + 2018 - demande)
} else {
alert(" Pas compris !")
}
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 !')
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 !')
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() { }
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`)
<!--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>