Initial commit
This commit is contained in:
26
code/scratchpad/javascript/example.js
Normal file
26
code/scratchpad/javascript/example.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Example JavaScript scratchpad file
|
||||
*
|
||||
* Use this area to test JavaScript/Node.js code
|
||||
* This project uses ES modules (import/export)
|
||||
*/
|
||||
|
||||
// Example imports (uncomment to use)
|
||||
// import fs from 'fs';
|
||||
// import path from 'path';
|
||||
// import { someFunction } from './other-file.js';
|
||||
|
||||
function helloWorld() {
|
||||
console.log("Hello from Memory Palace!");
|
||||
return "Success";
|
||||
}
|
||||
|
||||
// TODO: Add your experimental code here
|
||||
|
||||
// Run the example
|
||||
const result = helloWorld();
|
||||
console.log(`Result: ${result}`);
|
||||
|
||||
// Export for use in other modules
|
||||
export { helloWorld };
|
||||
export default helloWorld;
|
||||
Reference in New Issue
Block a user