Podcast
Questions and Answers
What method is used to create HTML elements in JavaScript?
What method is used to create HTML elements in JavaScript?
- makeElement
- createElement (correct)
- createHTML
- generateHTML
How can the default submission of a form be prevented in JavaScript?
How can the default submission of a form be prevented in JavaScript?
- form.preventSubmit()
- return true
- return false (correct)
- submit.preventDefault()
Which function is used to repeatedly execute a function at specified intervals?
Which function is used to repeatedly execute a function at specified intervals?
- repeatFunction
- intervalLoop
- setTimeout
- setInterval (correct)
In JavaScript, how can a button be disabled?
In JavaScript, how can a button be disabled?
What property would you use to find the length of a string or array in JavaScript?
What property would you use to find the length of a string or array in JavaScript?
How is data stored in Local Storage?
How is data stored in Local Storage?
Which method would you use to ensure a function stops running at set intervals?
Which method would you use to ensure a function stops running at set intervals?
Which function appends elements to the DOM in JavaScript?
Which function appends elements to the DOM in JavaScript?
Why is information lost when reloading a page without using Local Storage?
Why is information lost when reloading a page without using Local Storage?
What is the purpose of querying elements like the submit button and input task field once?
What is the purpose of querying elements like the submit button and input task field once?