A developer has written the code to display the details of the book after submitting the form as shown below:

book-store.compoent.html

1. <h1> Online Book Store </h1>

2. <h2> Book Name: {{ bookName }}</h2>

3.<h2> Book ID: {{ bookId }}</h2>

4. ----- Line 4-----

book.component.ts

class BookComponent{

bookName:string;

bookId:number;

function displayName()

{

//code goes here

}

}

<button on-click="displayName()">Show Book</button>

<button (click)=" displayName()">Show Book </button>

<button onclick="displayName()">Show Book </button>

<button onclick="displayName"> Show Book </button>

Verified Answer
Correct Option - b

To get all Infosys Certified Angular Web Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in