Let’s write an improved version of the ‘Hello, world!’ program. Let’s ask the user in which language they want to see the message. You must have, at least, three different languages.
- If the user wants the message in Spanish, you have to log in the console “Hola, mundo!”.
- If the user wants the message in French, you have to log in the console “Bonjour tout le monde”.
- Finally, if we don’t have the indicated language, we will show “Hello, world!”.
This little guide describes what to do when:
- You see a vulnerability warning for a package, and
- The package has already been fixed, and a patch version has been released.
- Delete all lock files
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
// node's event loop behind the scenes | |
// node is event driven and single threaded, with background workers | |
// imagine we ran node index.js | |
const pendingTimers = [] | |
const pendingOSTasks = [] | |
const pendingOperations = [] | |
// node executes the file and triggers timers, OSTasks and operations, filling in the above arrays. | |
index.runContents() |