Refer to code below:function Person() {this.firstName = 'John';}Person.prototype ={Job: x => 'Developer'};const myFather = new Person();const result =myFather.firstName + ' ' + myFather.job();What is the value of the result after line 10 executes?
Which statement phrases successfully?
Refer to the HTML below:<ul><li>Leo</li><li>Tony</li><li>Tiger</li></ul>Which JavaScript statement results in changing '' Tony'' to ''Mr. T.''?
Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code?Choose 3 answers
A developer creates a simple webpage with an input field. When a user enters text inthe input field and clicks the button, the actual value of the field must be displayed in theconsole.Here is the HTML file content:<input type ='' text'' value=''Hello'' name =''input''><button type =''button'' >Display </button>The developer wrote the javascript code below:Const button = document.querySelector('button');button.addEvenListener('click', () => (Const input = document.querySelector('input');console.log(input.getAttribute('value'));When the user clicks the button, the output is always ''Hello''.What needs to be done make this code work as expected?