Node - Constant

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > Node.js

1 - Example

constants.js
const urlRoot = 'https://mywebsite';
const version = '1.0.0';
 
export {urlRoot, version};

usage:

import {version} from './constants';
console.log(version);
web/javascript/node/constant.txt · Last modified: 2019/06/11 10:00 by gerardnico