2021-02-21js learning

Learning content issues:

  1. Which two engines are the browsers composed of?
  2. The execution process of Js code in the browser
  3. The composition of the main content of Js?
  4. Three types of writing position classification of Js
  5. What is Js annotation and how to achieve it
  6. What is the representation of the string entered in the js method, such as entering a string in alert

Reasons for selection: These problems are precautions or principles in use.

Specific answer:

  1. The execution process of the Js code in the browser
    a) The Js code is executed in a single thread through the js engine in the browser. And every time a sentence of code is interpreted, a code is executed.
  2. Which engine is the browser composed of?
    a) Rendering engine, js engine
    b) Rendering engine is mainly used to execute html, css code
    c) Js engine mainly executes js code
  3. What is the composition of Js?
    a) Js is composed of ECMAScript, DOM, and BOM?
    b) ECMAScript is the js code standard
    c) DOM is the objectification of html and css, allowing js to operate
    d) BOM objectification of common functions of the browser , You can let js operate
  4. Three writing positions of Js
    a) Inline, inline, external reference
  5. Js comment?
    a) // or /* code*/
    b) // shortcut key ctrl+/
    c) /* code*/ shortcut key shift+alt+a
  6. What is the representation of the string entered in the js method, such as entering a string in alert.
    a) Use single quotation marks

Guess you like

Origin blog.csdn.net/weixin_44767679/article/details/113913380