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
import React,{Component} from 'react'; | |
import Simpson from './Simpson' | |
const bart ={ | |
firstName:"Bart" , | |
lastName:"SIMPSON", | |
image:"https://avatarfiles.alphacoders.com/144/thumb-144535.jpg" | |
} |
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 hello = firstname => `Hello ${firstname} welcome into the wild` | |
console.log(hello('David')) | |
const fruits = ["Bananas", "Oranges", "Strawberries"]; | |
const vegetables = ["Cabbages", "Carotts"]; | |
const fruitsAnsVegetables =[...fruits,...vegetables] | |
console.log(fruitsAnsVegetables) |
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
document.body.style.backgroundImage = "url('https://www.transparenttextures.com/patterns/carbon-fibre.png')" ; | |
const replaceText = document.getElementById('replace-text'); | |
replaceText.style.color = "#777"; | |
replaceText.style.fontSize = "2em"; | |
replaceText.innerHTML = "I can do <em>whatever</em> I want with JavaScript."; | |
const blue = document.getElementsByClassName("blue"); |
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
document.body.style.backgroundImage = "url('https://www.transparenttextures.com/patterns/carbon-fibre.png')" ; | |
const replaceText = document.getElementById('replace-text'); | |
replaceText.style.color = "#777"; | |
replaceText.style.fontSize = "2em"; | |
replaceText.innerHTML = "I can do <em>whatever</em> I want with JavaScript."; | |
const blue = document.getElementsByClassName("blue"); |
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 person { | |
constructor(name,age){ | |
this.name = name | |
this.age = age | |
} | |
tellMyName(){ | |
return 'I am ' + this.name |
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
var cowsay = require("cowsay") | |
console.log(cowsay.say({ | |
text : "hello boy" | |
})) |
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('How old are you ? ') | |
process.stdin.on('data', (text) => { | |
if (text < 100 && typeof text === typeof "number" && text > 0){ | |
console.log(2020 - text) | |
process.exit() | |
}else{ | |
process.exit() |
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 helloWorld = sayHello => console.log('Hello World') | |
helloWorld('') | |
const goodBye = sayGoodBye => sayGoodBye | |
const bye ='GoodBye' | |
console.log(goodBye(bye)) |
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
https://hacks.mozilla.org/2020/03/future-proofing-firefoxs-javascript-debugger-implementation/ | |
Cette page nous montre toutes les nouveautés que Firefox a pu apporter au niveau de son debogueur Javascript. | |
https://www.developpez.com/actu/250354/CSS-s-enrichit-du-support-des-fonctions-trigonometriques-jusqu-ici-accessibles-via-JavaScript-apres-l-approbation-du-World-Wide-Web-Consortium/ | |
Cette article parle de toute les nouvelles fonctions trigonométriques rajoutées au standard Css à la demande de plusieurs développeurs web. | |
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 wilder = { | |
name:'David Ruben', | |
city:'Marseille', | |
age:29, | |
isLearningJs:true | |
} | |
console.log(wilder.hasOwnProperty('name')) | |
console.log(wilder.hasOwnProperty('isLearningJs')) |