Question: 1
Refer to the HTML below:
Which JavaScript statement results in changing ''Tony'' to ''Mr. T. ''?
A Document.querySelectorAll ('#main # TONY ') , innerHTML = Mr, T , ' ;
B Document.querySelector (' '#main li:second-child') innerHTML, = Mr, T, ';
C Document.querySelectorAll ( '#main li, Tony ' ) innerHTNL = Mr, T , ' ;
D Document.querySelector (''#main li:nth-child (2) ') , innerHTML = 'Mr . T ';
Answer : A
Show Answer
Hide Answer
Question: 2
A developer has code that calculates a restaurant bill, but generates incorrect answers while testing the code.
Which option allows the developer to step into each function execution within calculateBill?
Question: 3
The developer has a function that prints ''Hello'' to an input name. To test this, the developer created a function that returns world''.
What can the developer do to change the code to print ''Hello world''?
Question: 4
Refer to the code below:
Which code executes syhello once, two minutes from now?
Question: 5
Refer to the code below:
What is result of the code block?