O
O
Olena Ostrozka2015-08-25 11:14:18
JavaScript
Olena Ostrozka, 2015-08-25 11:14:18

What programs can be used to check the code in JavaScript?

Recently I started learning programming, I started with JavaScript, but of course there are a lot of errors in what I write, so what programs can I use to check. I tried Chome extensions with this theme, but they are of little use. Need something simple and understandable even for a beginner

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Kitmanov, 2015-08-25
@Veckta

1) Write code in an IDE (like WebStorm) and pay close attention to its warnings. It catches syntax errors and even some logical ones.
2) Use linters. ESLint is a very flexible thing with a bunch of rules.
PS If you need to catch logical errors, then start writing unit tests. At first, this may seem like a waste of time, but as you move on to more complex and non-trivial tasks, the practice of writing unit tests will be great to save time and nerves.

V
Vladimir Martyanov, 2015-08-25
@vilgeforce

The engine itself will check your code for errors. What kind of errors do you want to catch?

D
Dmitry Kovalsky, 2015-08-25
@dmitryKovalskiy

Architectural errors will be corrected only by experience. Syntactic - the console of the browser you are using, and runtime errors can be caught through DevTools (F12 button under windows) of your browser. We are talking about client logic, and not nodes or some other exotic?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question