

If you tried to overwrite a string with a numeric value in C# the compiler would throw a pie at you. This puts a higher demand on your organizational skills in keeping track of what your variables are for in your javascript code. In C# you would have to declare the data-type of a variable before you can use it, but in javascript you would simply declare the variable name and throw whatever you want into that variable and you can change the data from say a string into a numeric value at any point you want.

The important thing to keep in mind when working with any scripting language is that it does -not- have data type declarations, like the strongly typed languages do. To try to answer your questions whether it would be worth picking up JavaScript (playing Screeps in this scenario) is ultimately up to you, however keep in mind that the languages are very similar because of their family tree. Yes, JavaScript is capable of object / class creation but the overall syntax for creating them is very different from C# when comparing the two.

The latest language on the C family tree, C# (C-Sharp), is a heavy modification of the original OOP (Object Oriented Programming) version of the C language, which means that true object / class creation in C# will be a good deal different from other object based C languages. While there are some method syntax differences as well as data type differences between the languages, they all share the exact same common ancestor: C. C# is also in the C family of languages, which means for the most part the following languages are near on identical in their overall syntax:Ĭommon to all of these is the root acedemic structure of using tokens (in the form of curly brackets) to signify beginning and ending of encapsulating code segments. JavaScript is based on Java which is a rellic derivative of C. Comparing a scripting language to a full on programming language can be a difficult task to complete, because of how different scripting languages are compared to strongly typed programming languages.
