My name is Samuel Braun, I am 24 and from Germany. I absolutely love learning and sharing knowledge about web development, especially in the frontend field which is why I made this account ✋
Im not too sure what you are looking for, but here is how you could use namespaces and modules to structure your code:
api.js
/**
* @namespace backend
*//**
* @module api
* @memberof backend
*//**
* A function in the api.js file.
* @function someFunction
* @memberof module:api
*/functionsomeFunction(){// your code here}/**
* A variable in the api.js file.
* @var {number} someVariable
* @memberof module:api
*/constsomeVariable=123;
cache.js
/**
* @module cache
* @memberof backend
*//**
* A function in the cache.js file.
* @function anotherFunction
* @memberof module:cache
*/functionanotherFunction(){// your code here}
anywhereElse.js
/**
* This function does something with {@link module:api.someFunction}.
*/functionyetAnotherFunction(){// your code here}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Im not too sure what you are looking for, but here is how you could use namespaces and modules to structure your code:
api.js
cache.js
anywhereElse.js