Skip to content

Javascript

Baltasar Brito edited this page Nov 12, 2019 · 5 revisions

Table of contents

Exports and imports

  • Default export: import something from './something.js' import smtg from './something.js'

  • Named export import {something} from './somethings.js'

Destructuring

const numbers = [1, 2, 3];
[num1, num2] = numbers;
const person = {name: 'Name', age: 28];
{name} = person;
Clone this wiki locally