ES6 - Reuse JavaScript Code Using import

Tell us what’s happening:

i don’t understand what’s the actual mistake i am making, i have similar problems in previous codes as well. is it a “logical error” ?

Your code so far

import{lowercaseString,uppercaseString}from'./string_functions.js'; 
// Only change code above this line

uppercaseString("hello");
lowercaseString("WORLD!");

Your browser information:

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

Challenge Information:

ES6 - Reuse JavaScript Code Using import

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Welcome to the forum @varshansaravanan26

You need to separate the keywords with a single space.
Your code has a syntax error.

Happy coding

Thank you so much for your help!
I will correct it.

1 Like