Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

JavaScript-Developer-I Practice Test


Page 7 out of 45 Pages

Refer to HTML below:
<div id =”main”>
<div id = “ card-00”>This card is smaller.</div>
<div id = “card-01”>The width and height of this card is determined by its
contents.</div>
</div>
Which expression outputs the screen width of the element with the ID card-01?


A.

document.getElementById(‘ card-01 ’).getBoundingClientRest().width


B.

document.getElementById(‘ card-01 ’).style.width


C.

document.getElementById(‘ card-01 ’).width


D.

document.getElementById(‘ card-01 ’).innerHTML.lenght*e





A.
  

document.getElementById(‘ card-01 ’).getBoundingClientRest().width



Which option is a core Node,js module?


A.

Path


B.

Ios


C.

Memory


D.

locate





A.
  

Path



A developer is wondering whether to use, Promise.then or Promise.catch, especially
when a Promise throws an error?
Which two promises are rejected?
Which 2 are correct?


A.

Promise.reject(‘cool error here’).then(error => console.error(error));


B.

Promise.reject(‘cool error here’).catch(error => console.error(error));


C.

New Promise((resolve, reject) => (throw ‘cool error here’}).catch(error =>
console.error(error)) ;


D.

New Promise(() => (throw ‘cool error here’}).then(null, error => console.error(error)));





B.
  

Promise.reject(‘cool error here’).catch(error => console.error(error));



C.
  

New Promise((resolve, reject) => (throw ‘cool error here’}).catch(error =>
console.error(error)) ;



Refer to the code below:
Let str = ‘javascript’;
Str[0] = ‘J’;
Str[4] = ’S’;
After changing the string index values, the value of str is ‘javascript’. What is the reason
for this value:


A.

A. Non-primitive values are mutable.


B.

Non-primitive values are immutable.


C.

Primitive values are mutable.


D.

Primitive values are immutable.





D.
  

Primitive values are immutable.



Which three actions can be using the JavaScript browser console?
Choose 3 answers:


A.

View and change DOM the page.


B.

Display a report showing the performance of a page.


C.

Run code that is not related to page.


D.

view , change, and debug the JavaScript code of the page.


E.

View and change security cookies





A.
  

View and change DOM the page.



C.
  

Run code that is not related to page.



D.
  

view , change, and debug the JavaScript code of the page.




Page 7 out of 45 Pages
Previous