DEV Community

loading...

Discussion on: PHP 8 features I wish also existed in JavaScript

devmount profile image
Andreas Author

My bad, thanks for pointing out 👏🏻 I updated the example code. Totally agree with you about the separate function, nevertheless I just used let to keep things simple.