javascript ⚓︎
Resources
- Javascript for Beginners by Microsoft Developers
Intro⚓︎
- Client: it runs in a web browser using
<script>
tags; it has access to the web page functions and objects (i.e. the Document Object Model or DOM) - Server: the Node.js runtime executes JavaScript on the server, it has access to built-in and third-party packages; usually used for building web services.
- Native: build native desktop and mobile applications with Electron, React Native and NativeScript
Nodejs⚓︎
Node.js is a JavaScript runtime to execute scripts out of the browser.
To install Node.js, use nvm (Node Version Manager) following the install instructions on the official GitHub repository. Test it with just nvm
.
Then install Node.js:
nvm install node
node -v
console.log('Ciao mondo! 🥙');
), use
node APPLICATION_NAME.js
Notes⚓︎
Variables⚓︎
const greeting = "Ciao"
const place = "Mondo🌍"
console.log("%s, %s!", greeting, place)
const greeting = "Ciao"
const place = "Mondo🌍"
console.log(`${greeting}, ${place}!`)