Qtr No. 213, New Town Yehlanka Indore 454775
What will be the output of the below code in browser?
base-class.js
export class BaseClass extends PolymerElement {
static get template() {
return html
`This content has been inherited from BaseClass.`;
}
}
customElements.define('base-class', BaseClass);
child-class.js
import {BaseClass} from './base-class.js'
class ChildClass extends BaseClass {
static get template() {
return false;
}
}
customElements.define('child-class', ChildClass);
index.html
<html lang="en"> <head> <script type="module" src="child-class.js"></script> </head> <body> <child-class></child-class> </body> </html>
To get all Infosys Certified Polymer JS Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee
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
Updated on Wed, 3 Dec 2025