Node.js v16.1.0
I am trying to import constants from another js file in the same directory. But i am not being able to do so.
constants.js
export const API_URL = 'http://localhost:8080';
export const MAX_THREADS = 8;
solution.js
/**
* Import constants from the constants.js file
*
* Each console.log should log a separate constant
*/
import { MAX_THREADS } from "./constants.js";