scrimba
Learn Modern JavaScript
Understand the Differences Between import and require
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Understand the Differences Between import and require
AboutCommentsNotes
Understand the Differences Between import and require
Expand for more info
index.js
run
preview
console

const cap = capitalizeString("hello!");

console.log(cap);
Console
ReferenceError: capitalizeString is not defined (/index.js:3)
,
index.html
-2:13