hi.
I’m fairly new to Javascript so this may be a stupid question.
I’d like to create a scripted dashboard but would like to use ES6. How can this be achieved please?
I was hoping I could do something along the lines of…
export default function(){
var dashboard = { Title: ‘My ES6 Dashboard’ }
// Loads of other ES6 stuff here
return dashboard;
}
Then use babel to transpile to ES2015. However I’m getting nowhere.
Any help appreciated.