(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Save branch history and revert easily | |
git merge --no-ff | |
git revert -m 1 <hash> | |
# Show n lines of context around diff lines instead of the usual +/- 3 | |
git diff -U<n> | |
# Check which branches are merged | |
git branch --merged |
async function launch() { | |
const { crier } = await import('./testImportFile.js'); | |
crier(); | |
} | |
launch(); | |
---- testImportFile.js | |
export function crier() { | |
console.log('roaaarrrr !'); |
const unWookie2 = { | |
prenom: 'Chewie', | |
nbPoils: 14789963201456n, | |
nbShampoings: BigInt('9007199254740991'), | |
arme: { | |
tirer: function() { | |
appDiv.innerHTML += ' <b>shot</b>'; | |
} | |
} |
const unWookie = { | |
prenom: 'Chewie' | |
} | |
unWookie.arme?.tirer(); | |
const unWookie2 = { | |
prenom: 'Chewie', | |
arme: { | |
tirer: function() { |
let firstName = null; | |
let lastName = null; | |
let nickName = 'Chewie'; | |
let result = `${firstName ?? lastName ?? nickName}`; | |
// Write Javascript code! | |
const appDiv = document.getElementById('app'); | |
appDiv.innerHTML = `<h1>${result}</h1>`; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Boring | |
if (isThisAwesome) { | |
alert('yes'); // it's not | |
} | |
// Awesome | |
isThisAwesome && alert('yes'); | |
// Also cool for guarding your code | |
var aCoolFunction = undefined; |
"es5": { | |
"tsConfig": "./tsconfig.app.es5.json" | |
} |