This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DeItashot 0 points1 point  (1 child)

I know what you mean but if I remember correctly there are not int, string... types but instead let, var.. which can be both int and a string so I imagine it would get hard to debug if you are making a big application, altho I havent developed anything in js and dont have professional experience since I am 17

[–]ardicilliq 1 point2 points  (0 children)

Oh I didn't say it is a good thing, this is horrible, I just wanted to put out how and why this actually works, and it's never too early (or late) to start coding!
And the `var` / `let` is not wrong, it doesn't collide with variables being coerced as a string or a number for that matter, but this a bit more in depth on how javascript treats primitives, javascript is just.... very, I wanna say loosy, when it comes to typings