What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-22 09:45:03
export array in javascript
// Exporting individual features export let name1, name2, …, nameN; // also var, const export let name1 = …, name2 = …, …, nameN; // also var, const export function functionName(){...} export class ClassName {...} // Export li... Add solution -
Javascript 2021-09-15 15:26:03
npm start using old files
this is most likely to be a problem in my code. this time I used named import whereas I as trying to do default export. and rce also made export class something which i forgot to remove. so there was no problem with the react-script Add solution -
Javascript 2021-09-05 19:33:02
module system in javascript
// Default exports //Function.js// export default () => console.log("Hello"); export default someValue = 10; //Main.js// import oneFunc from './Function'; oneFunc(); // Hello import value from './Function'; console.log(value) // 10 // Na... Add solution