Practice-Modern-JavaScript

A boilerplate to setup and Practice Modern JavaScript

MIT License

Stars
12

Practice Modern JavaScript MIT License Tweet Practice Modern JavaScript Open Source Helpers

A boilerplate to setup and practice Modern JavaScript

Table of Contents

Requirements

Installation

1. Install nodemon globally for watching for file changes while running the code 🔰 📦

$ npm install -g nodemon # npm i -g nodemon

2. Install all dependencies 🔰 📦

$ yarn install

Usage

1. Start watching for file changes 👀

$ yarn run watch # yarn start

2. 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

Examples

1. Example 1

// async-await.js
const prom = new Promise(resolve => {
  resolve(`Hello`)
})

const longRun = async () => {
  const res = await prom
  console.log(res)
}

longRun()

2. Example 2

// array-includes.js
const includes3 = [1, 3, 4].includes(3)
console.log(includes3)

Technologies Used

Help & Support

Contributors

Abhisek PattnaikAbhisek Pattnaik💻 🎨 📖 💡

This project follows the all-contributors specification.

All types of Contributions are Welcome 🙏

License

MIT © Abhisek Patnaik



Badges
Extracted from project README
MIT License Open Source Helpers All Contributors MIT License Practice Modern JavaScript Download Practice Modern JavaScript Tweet Gitter chat
Related Projects