JS-Dev-101 Exam Question 31
Refer to the HTML below:

Which JavaScript statement results in changing " The Lion."?

Which JavaScript statement results in changing " The Lion."?
JS-Dev-101 Exam Question 32
A developer creates an object where its properties should be immutable and prevent properties from being added or modified.
Which method should be used to execute this businessrequirement ?
Which method should be used to execute this businessrequirement ?
JS-Dev-101 Exam Question 33
Refer to the code below:
Async funct on functionUnderTest(isOK) {
If (isOK) return 'OK';
Throw new Error('not OK');
)
Which assertion accurately tests the above code?
Async funct on functionUnderTest(isOK) {
If (isOK) return 'OK';
Throw new Error('not OK');
)
Which assertion accurately tests the above code?
JS-Dev-101 Exam Question 34
Refer tofollowing code:
class Vehicle {
constructor(plate) {
This.plate =plate;
}
}
Class Truck extends Vehicle {
constructor(plate, weight) {
//Missing code
This.weight = weight;
}
displayWeight() {
console.log('The truck ${this.plate} has a weight of${this.weight} lb.');}} Let myTruck = new Truck('123AB', 5000); myTruck.displayWeight(); Which statement should be added to line 09 for the code to display 'The truck 123AB has a weight of 5000lb.'?
class Vehicle {
constructor(plate) {
This.plate =plate;
}
}
Class Truck extends Vehicle {
constructor(plate, weight) {
//Missing code
This.weight = weight;
}
displayWeight() {
console.log('The truck ${this.plate} has a weight of${this.weight} lb.');}} Let myTruck = new Truck('123AB', 5000); myTruck.displayWeight(); Which statement should be added to line 09 for the code to display 'The truck 123AB has a weight of 5000lb.'?
JS-Dev-101 Exam Question 35
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers
