GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Review for Challenge 4

Rosa Luz Estevané Rodríguez Englisch 23 Karten

Review for Challenge 4

Karten in diesem Stapel (23)

  1. 1What is a radio button?What is a radio button?
  2. 2What is a check box?What is a check box?
  3. 3How can you verify if a radio button is selected?With the property checked. Example:
    if (document.getElementById("male").checked == true)
  4. 4What will be the final value of amount after executing the code: var amount = 10 amount = amount + 20amount = 30
    As it had a value of 10 and it is used to accumulate 20
  5. 5Common name of a device that detects a signal, that is a form of energy, and converts it to anotherSensor
  6. 6Which are the sensors included in a phone?Which are the sensors included in a phone?
  7. 7What is the purpose of the instruction Math.floor() ?Round down a number
    Example: The result of Math.floor(9.9) is 9
  8. 8The instruction Math.floor (Math.random()*10)+1 will produce a random number in the range of:Numbers from 1 to 10
  9. 9How would you generate a random number from 0 to 27var number = Math.floor(Math.random()*28)
  10. 10Which are the parts of a for loop?for (var i=0; i
  11. 11—i = 6
    Because the last value of the variable is the one that makes the condition false
    i = 6 Because the last value of the variable is the one that makes the condition false
  12. 12—It will be executed 3 times:
    when i = 0, then i=1 and i=2
    when i=3 the loop ends
    It will be executed 3 times: when i = 0, then i=1 and i=2 when i=3 the loop ends
  13. 13—There are 2 conditions that would work perfect:
    count<=20 OR
    count<21
    as both include 20
    There are 2 conditions that would work perfect: count&lt;=20 OR count&lt;21 as both include 20
  14. 14—Prompt()
    Example:
    var name = prompt ("Please enter your name");
    Prompt() Example: var name = prompt ("Please enter your name");
  15. 15—
  16. 16—
  17. 17—
  18. 18—
  19. 19—
  20. 20How could you create an array that holds the first 3 months of the year?var months = ['Jan', 'Feb','Mar'];
  21. 21How could you show the 2nd element of the array named months in a pop-up window?alert ( months[1] )
    because the first position of the array is zero!
  22. 22What property tells how many elements are included in an array?the property length
    Example: var myarray = [2020, 2016]
    var total = myarray.length
  23. 23—

Informationen

Beschreibung
Karteikarten am Review for Challenge 4, erstellt von Rosa Luz Estevané Rodríguez am 17/03/2020.
Aufrufe
628
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck