147
rated 0 times
[
151]
[
4]
/ answers: 1 / hits: 108889
/ 8 Years ago, wed, april 6, 2016, 12:00:00
The export statement below gives a syntax error
export default const hello = () => console.log(say hello)
why ?
I'm only able to export named functions
export function hello() {
console.log(hello)
}
What is the reason?
More From » ecmascript-6