Is it possible in ES6 to set a variable inside of a try{} using const in strict mode?
try{}
const
\'use strict\'; const path
'use strict'; const path = require('path'); const configPath = (function() { try { return path.resolve(process.cwd(), config); } catch (error) { //..... } })() console.log(configPath);