Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/reuse-javascript-code-using-import

Tell us what’s happening: I wrote the correct answer but cant pass because of TypeError: unknown: (0 , s.extname) is not a function

Your code so far
import { uppercaseString, lowercaseString} 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/89.0.4389.90 Safari/537.36 Edg/89.0.774.57.

Challenge: Reuse JavaScript Code Using import

Link to the challenge:

2 posts were merged into an existing topic: Reuse JavaScript Code Using Import [BUG]