en
Buku
Abhilasha Sinha,Alok Ranjan,Ranjit Battwad

JavaScript for Modern Web Development: Building a Web Application Using HTML, CSS, and JavaScript

  • DDaudalagidmembuat kutipan2 tahun yang lalu
    It matches only those elements matched by the second selector that are the children of elements matched by the first
    It is stricter than a descendent selector where the element2 can be the child of element1 at any level of DOM.
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    The browser attaches the style to the associated DOM nodes and finally displays the contents of the DOM.
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    It is considered a good programming practice to add enough comments so anyone can understand your code just by looking at it with the supporting comments.
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    let rem= num1 % num2; // Modulus
    num1++; // Post-increment
    ++num1; // Pre-increment
    num1-- // Post-decrement
    --num1 // Pre-decrement
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    2++; // Unary Operator
    2 + 3; // Binary Operator
    (4 > 3) ? true : false; //Ternary Operator
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    A function is a code block that is designed to work together to perform a specific task. The task to be done by the function is defined once and can be invoked or executed in the form of a function, a number of times.
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    for (initialization; test condition; updation) {
    // … loop body …
    }
    Example : for(i=0;i<10;i++)
    {
    console.log(i);
    }
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    They can be entry-controlled or exit-controlled depending on the placement of the loop condition
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    Iterative statements: Block of code getting executed for multiple numbers of times based on the loop condition.
  • DDaudalagidmembuat kutipan2 tahun yang lalu
    switch case statements: Conditionally execute code based on the value match as shown:
fb2epub
Seret dan letakkan file Anda (maksimal 5 sekaligus)