DEV Community

[Comment from a deleted post]
Collapse
 
lyfolos profile image
Muhammed H. Alkan • Edited
  1. Fast writing You can write JS really fast. You don’t need to use semicolons

You mean Node.js, almost all modern languages doesn't use semicolons,
even COBOL.

Speaking of functions, you can do x => x / 2

Many languages already can do this with almost the same syntax.

So instead of "Hi {}!".format(name), you can do:
Hi ${name}!

You can do

f"Hello {name}!"

which is shorter or equal. For example

Python

f"Hello, {name}! You're {age} years old, I {someword}"

Js

"Hello, ${name}! You're ${age} years old, I ${someword}"

Do not speak or teach without any knowledge.

  1. Types and Equality
'2' - 1 // 1
'2' + 1 // '21'

Perfect type conversion.

  1. Packages

Because you haven't used any language or know any language.
There is much more perfect and awesome package managers than npm.
node_modules, yeah.


The post is completely wrong. Python has much more features than JS
such as optional static typing (without using a new language), Erlang
has great concurrency, Elixir has a simpler syntax and better concurrency,
OCaml has great performance (compiles to native code), can compile to JS (Just for the web, not a real app).

You have to learn new things.