Understand the Differences Between import and require(help please

Tell us what’s happening:
Cannot read property ‘capitalizeString’ of undefined
how to fix it??

Your code so far


"use strict";
import {capitalizeString} from "string functions"
capitalizeString("hello!");

string functions should be string_functions

1 Like

it worked, thank you!