Ad

Tuesday, November 9, 2021

Getting started with Node.js 2021

common file names conventions

app.js, server.js


commands

npm run build: will run utilities to build and bundle javascript files if possible. After generating the bundle.js, be sure to include it in a script tag in the HTML file. 

npm run start


The request module has been deprecated. Many web API requests make use of this module. Using this module will throw errors. MDN Fetch API "This kind of functionality was previously achieved using XMLHttpRequest. Possible alternative: Fetch provides a better alternative that can be easily used by other technologies such as Service Workers. Fetch also provides a single logical place to define other HTTP-related concepts such as CORS and extensions to HTTP." https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch Mozilla MDN

Global scope: publicly available variables at the top level of a browser window

No comments:

Post a Comment

Metaverse

We all heard that facebook wants to be META but one simply doesn't just become meta $MANA $YGG snoop dog Metaverse game that every one i...