Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
Refactor means to change the implementation details without altering the behavior.
The only way to ensure the behavior is through tests, hence you need tests in order to Refactor, otherwise you're just "changing code".
Then, if the code is tested there's few benefit on static typing, and even less if your code is documented properly (so you can know what a function/method expects as parameters and what it will return by simply hovering your cursor over it's name).
Edit: I recommend the book Refactoring Javascript by Evan Burchard, it may bring some light to this topic.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Refactor means to change the implementation details without altering the behavior.
The only way to ensure the behavior is through tests, hence you need tests in order to Refactor, otherwise you're just "changing code".
Then, if the code is tested there's few benefit on static typing, and even less if your code is documented properly (so you can know what a function/method expects as parameters and what it will return by simply hovering your cursor over it's name).
Edit: I recommend the book Refactoring Javascript by Evan Burchard, it may bring some light to this topic.