What's the point of JavaScript decorators?
I googled about JavaScript decorators but I'm not sure what the difference between calling a function using a decorator and calling a function normally is.
function myFunction(text) {
console.log(text)
}
myFunction() vs @myFunction vs @myFunction()
I have a feeling I'm more than wrong here. Can someone explain?