It allows you to:
Create dynamically updated content
Let us begin with the benefits.
Drawback is the lack of data typing
Which is the problem of all scripting languages. Until the code execution reaches the needed line, you will not know if it works. This slightly slows down the task performance speed and also affects reliability.
JS does not support complex math
It can handle basic sums and equations but is completely irrelevant in calculating the trajectory of a satellite (for such needs Python is often used.)
JS is deployed on the client’s side