July 2018
Intermediate to advanced
420 pages
8h 46m
English
An import can be accomplished with the keyword import, and can be declared in different ways, depending on what library you are using. An example of using Require.js is as follows:
import MyBand = require('./export');console.log(Myband());An example of using Common.js is as follows:
import { MyBand } from './export';console.log(new Myband(['ZZ Top', 'Motorhead'], 3));
Read now
Unlock full access