As someone who doesn't really use JavaScript much, what was wrong with the function declaration form and why are the rest needed? I learned JS before the newer ways existed and never really kept up.
What are you telling me I'm incorrect about? The arrow function wasn't a thing until around ten years ago. I almost never use JavaScript so I never kept up on what the true differences were other than syntax. I learned JS in the mid 2000s.
I didn’t say you are incorrect, I said I doubt you have learnt it in the 90s. The function expression existed at least in the ES3 standard, released by the end of 1999.
You placed the comma after the parenthesis, suggesting that the sentence betweeen the parenthesis is referring to the first statement.. Then a comment later you explained that the parenthesis sentence is referring to the sentence after it, but that doesn't make sense when there's a comma right after it. so in other words, you're doing a poor job of communication
38
u/damnNamesAreTaken Apr 14 '24
As someone who doesn't really use JavaScript much, what was wrong with the function declaration form and why are the rest needed? I learned JS before the newer ways existed and never really kept up.