Skip to content

abhisekp/Practice-Modern-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

A boilerplate to setup and practice Modern JavaScript

All Contributors MIT License
Practice Modern JavaScript Download
Practice Modern JavaScript Tweet

Gitter chat

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 Pattnaik
Abhisek Pattnaik

💻 🎨 📖 💡

This project follows the all-contributors specification.

All types of Contributions are Welcome 🙏

License

MIT © Abhisek Patnaik


Tweet @abhisek
Know about/abhisekp
Chat with @abhisekp


About

💎 🎀 A boilerplate to setup and Practice Modern JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6