Skip to content
RED SAG Skills
medium10 pts · first answer countsjavascriptmodules

An imported let that changes

What does main.js print?

// counter.js
export let count = 0
export function inc() { count++ }

// main.js
import { count, inc } from "./counter.js"
inc()
console.log(count)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions