Agilaz

Best Pony Tug of War

Recommended Posts

4

You don't have to do that, in Java OR JavaScript. JS doesn't have types, and Java converts ints to floats automatically.

Share this post


Link to post
Share on other sites

2

It's very low-typed, though. The same variable can store an array of Strings, or the number -3.

I miss JS....

Share this post


Link to post
Share on other sites

0

Well, yeah, it keeps track of the type for when the types are important so it can throw an error if you try to break the rules of logic. But other than that, it's much less strict. You don't have to worry about the types. A function can return an array with values of multiple types.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now