Code importt why isn't it working?

Tell us what’s happening:

I don’t get what i am doing wrong here. Text says to import them same way as they did in the example but instead of add it should be lower and upper

Your code so far


import{uppercaseString, lowercaseString} from './string_function.js';  
// add code above this line

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15.

Challenge: Reuse Javascript Code Using import

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/reuse-javascript-code-using-import

1 Like

string_functions

:+1:

2 Likes

You have a typo in the filename.

2 Likes