A boilerplate to setup and practice Modern JavaScript
- Requirements
- Installation Instructions
- Nodemon
- Dependencies
- How to Use
- Watch
- Write
- Output
- Examples
- Example 1
- Example 2
- Technologies Used
- Help & Support
- Contributors
- License
- Contact
Requirements ⮭
- Latest NodeJS (>= v6)
Installation ⮭
1. Install nodemon globally for watching for file changes while running the code 🔰 📦
$ npm install -g nodemon # npm i -g nodemon2. Install all dependencies 🔰 📦
$ yarn installUsage ⮭
1. Start watching for file changes 👀
$ yarn run watch # yarn start2. Start writing modern JavaScript in src/index.js file 📝
// my-module.js
export const name = 'My Module'// index.js
import * as myModule from './my-module'
console.log(myModule.name) // 'My Module'3. Enjoy the output 😂
$ yarn start
My Module// async-await.js
const prom = new Promise(resolve => {
resolve(`Hello`)
})
const longRun = async () => {
const res = await prom
console.log(res)
}
longRun()// array-includes.js
const includes3 = [1, 3, 4].includes(3)
console.log(includes3)Technologies Used ⮭
- Babel — Transpiles modern JS to compatible and runnable JS
- babel-preset-modern-node — A preset for Babel with required plugins
Help & Support ⮭
- BabelJS — BabelJS Slack Chat Room
- FreeCodeCamp/FreeCodeCamp — FreeCodeCamp Gitter Chat Room
- nodejs/node — NodeJS Gitter Chat Room
Contributors ⮭
Abhisek Pattnaik 💻 🎨 📖 💡 |
|---|
This project follows the all-contributors specification.
All types of Contributions are Welcome 🙏
License ⮭
Tweet 
Know about/abhisekp
Chat with



