Cómo exportar funciones e importarlas en js

export function exampleFunctionOne() {
  console.log("Hello World")
}

export function exampleFunctionTwo() {
  console.log("Exporting multiple functions from a module!")
}

export function exampleFunctionFour() {
  console.log("JavaScript is awesome!")
}



// then when you want to import them:

import { exampleFunctionOne, exampleFunctionTwo } from "./some-js-file"
Hussain Abbas