How different are the semantics between Python and JavaScript?

后端 未结 6 1312
無奈伤痛
無奈伤痛 2021-01-30 09:36

Both these languages seem extremely similar to me. Although Python supports actual classes instead of being prototype-based, in Python classes are not all that different from f

6条回答
  •  感动是毒
    2021-01-30 09:53

    In Python, whitespace is part of the language. In Javascript, braces define code blocks and spaces are ignored. Furthermore, Python has bindings for the Java API, .net, and other cool fancy libraries. Javascript is pretty limited in the library department when compared to Python, but it has some neat windowing libraries and such.

提交回复
热议问题