Understand the Differences Between import and require - broken

Tell us what’s happening:

edit:
The solution appears to be incorrect, where

import { capitalizeString } from "string-functions";

should be

import { capitalizeString } from "string_functions";

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/understand-the-differences-between-import-and-require

I don’t understand the challenge, but if you spell the file name correctly, your solution will work. Note that hyphens and dashes aren’t the same.

Thanks, it appears I made the exact same typo as the solution did, and when I pasted the solution into the test, it failed.

Well, that’s what you get for cheating.