This question has already been answered:

Help guys find detailed JS documentation. I am new to this business; I teach JS by examples as they say. I see a goal; I see no obstacles, but such constructions, for example, if (element.src.match ("bulbon")) or obj.innerHTML = "" are not understandable to me. May need a different approach? thank

Reported as a duplicate by the participants Duck Learns to Hide , Kromster , Pavel Mayorov , Vadim Ovchinnikov , AK Jan 16 '17 at 10:01 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • Detailed documentation on js is called official specifications. ecmascipt specification, w3c dom specification and w3c html specification. But if you have these constructions cause problems, the type of specifications will be dangerous for your psyche, so I will not give references to them here =) - Duck Learns to Take Cover
  • 2
    There is some "interpretation" of the specifications on mdn: developer.mozilla.org/en-US/docs/Web/JavaScript , but this is also not for beginners in general. For a beginner, I recommend the textbook learn.javascript.ru, Well, there is no royal road in programming, all the time there will be something incomprehensible. And the further, the more. - Duck Learns to Take Cover
  • thank uuu)) I'll start with the textbook - Adel Adel

2 answers 2

To clarify the constructions that you brought in your question, you first need the following specifications.

This is the document object model of at least level 3, as it is most fully supported by browsers.

Document Object Model (DOM) Level 3 Core Specification

As well as descriptions of official JavaScript, which is called ECMAScript. Here it is already better to focus on the latest revision of this standard.

Standard ECMA-402

Simply put, you will need to refer to the sites www.w3.org and www.ecma-international.prg On these sites you can find any version specifications that you need for DOM and JavaScript.

These specifications should be referred to as reference manuals as you learn javascript for available books.

    (element.src.match ("bulbon")) or obj.innerHTML = ""

    If here we meant a construction of this type: (element.src.match("bulbon")) || obj.innerHTML="" (element.src.match("bulbon")) || obj.innerHTML="" - this means that if element.src does not find bulbon matches, then an empty string will be specified in obj.innerHTML .

    Start simple and gradually as you increase your skills, go deeper. I, for example, studied by this method: at the beginning I learned the basics, syntax, and other basic, and then I trained in writing elementary scripts.

    I set myself simple tasks, for example:

    I want you to be able to enter your name in the form, and then display the welcome line with the substitution of the entered name, in all the ways that I learned about.

    After you have implemented a task in several ways, compare the implementation options and make a selection of ways to solve the problem that are most concise, flexible and convenient.

    To google, google and once again google (well, or whatever your search engine you use there). The more you read articles, documentation, etc. - the greater your money box of knowledge and, accordingly, understanding what and how it works. If something is very tight and it is not clear, then there are plenty of video lessons on various topics and for different levels, there are a lot of them in youtube.com ...

    This is not a very bad Russian-language textbook: https://learn.javascript.ru/ - JS used it at the very beginning of its development.

    When you feel more confident, after the textbooks, start switching to the documentation or combine both as you master it. The documentation describes in more detail what and how it works. And the textbooks themselves are more an option to start mastering something. In the place with the documentation, I also recommend in parallel to read the article "best practices" (to avoid the so-called govnododerstvo in the society).

    The main perseverance, and everything else will come with time.

    • great advice, thanks - Adel Adel
    • @AdelAdel if the answer helped you, then it is customary to put a plus sign it (response rating on the left), and one of the answers can be "accepted" - "daw" under the place where to put pluses - Duck Learns to Take Cover