Use * to Import Everything from a File HELP

Use * to Import Everything from a File HELP
0.0 0


Tell us what’s happening:


The code below requires the contents of a file, “capitalize_strings”, found in the same directory as it, imported. Add the appropriate import * statement to the top of the file, using the object provided.

What object provided? I get that import * as myObj from "capitalize_strings" syntax but I can’t figure out the “object provided”.

Your code so far

"use strict";
import * as myObj from "capitalize_strings"

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:


I’m stupid. Turns out myObj works!


No, you are not stupid, the question is not well written.

I still can’t pass the test of this silly question, what is the trick?


OK, I got if finally. the semicolon at the end of the import is mandatory! /_-


Thank you so much! :smiley:


ES6 is full of bugs.




and Now,