Is Javascript designed to force you into being a soydev?
I need a basic for loop for pagination, so I already have a total amount of pages as an integer (I mean number, because that's how JS calls it for some weird reason), and "for (let i = 0; i < total; i++)" gives me the error "reserved keyword let".
I remove "let", and gives me "unexpected (".

So I had to make an array, then do an array push to get the amount of empty entries needed, and then "for (i in stupidArray)" works.
Fuck this shit!
Follow

@ryo I bet most people use TypeScript now.

· · Web · 1 · 0 · 1
@xianc78 I don't even have a choice in this particular case, since it's an "add new features into an already existing project" type of project.
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.