Challenge 3 — Solution Task: Write the contents of a file stringUtils.js that has BOTH a default export (a function capitalize(str)) and a named export (a function reverse(str)). Write main.js that imports both together in a single import statement and tests each one. // stringUtils.js export default function capitalize(str) { return str.charAt(0).toUpperCase() + str.slice(1); } export function reverse(str) { return str.split('').reverse().join(''); } // main.js import capitalize, { reverse } from './stringUtils.js'; console.log(capitalize("hello")); console.log(reverse("hello")); Expected output: Hello olleh Notes: - A single file can mix a default export and any number of named exports — capitalize is the default, reverse is named, and both are imported together in one statement: default first, then named exports in braces. - reverse uses split('') to turn the string into an array of characters, Array's own reverse() method (Fundamentals Chapter 6, though not explicitly covered there) to flip the order, then join('') to turn it back into a string. - The import line's order matters syntactically: the default import (no braces) must come before the named imports (in braces), not the other way around.