Textbook in PDF format
Modern JavaScript is a “safe” programming language. It does not provide low-level access to memory or CPU, because it was initially created for browsers which do not require it. JavaScript’s capabilities greatly depend on the environment it’s running in. In-browser JavaScript can do everything related to webpage manipulation, interaction with the user, and the webserver.
This book is a tutorial. It aims to help you gradually learn the language