is the output of line 02?Q: 1
Given the following code:
is the output of line 02?
is the output of line 02?Options
Discussion
Its B. I figure null is its own type, so typeof should return 'null'. Not sure why object would make sense here since null isn't really an object. Anyone recall seeing otherwise?
Be respectful. No spam.
Q: 2
Which statement phrases successfully?
Options
Discussion
Why do they always use weird quotes in these options? Not seeing any real-world JSON with those, honestly. Is there some trick I'm missing in D or is that just supposed to be double quotes inside single?
Be respectful. No spam.
Q: 3
Given the code below:
const delay = sync delay => {
Return new Promise((resolve, reject) => {
setTimeout (resolve,delay);});};
const callDelay =async () =>{
const yup =await delay(1000);
console.log(1);
What is logged to the console?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
developer is trying to convince management that their team will benefit from using
Node.js for a backend server that they are going to create. The server will be a web server that
handles API requests from a website that the teamhas already built using HTML, CSS, and
JavaScript.
Which three benefits of Node.js can the developer use to persuade their manager?
Choose 3 answers:
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
Refer to the following code:
What is the value of output on line 11?
What is the value of output on line 11?Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
A developer creates a class that represents a blog post based on the requirement that a
Post should have a body author and view count.
The Code shown Below:
Class Post{
// Insert code here
This.body =body
This.author = author;
this.viewCount = viewCount;
}
}
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set
to a new instanceof a Post with the three attributes correctly populated?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
Refer to the code below:
Function Person(firstName, lastName, eyecolor) {
this.firstName =firstName;
this.lastName = lastName;
this.eyeColor = eyeColor;
}
Person.job = ‘Developer’;
const myFather = new Person(‘John’, ‘Doe’);
console.log(myFather.job);
What is the output after the code executes?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
Given the JavaScript below:
Which code should replace the placeholder comment on line 06 to hide accounts that do not match
the search string?
Which code should replace the placeholder comment on line 06 to hide accounts that do not match
the search string?Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
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
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 10
Refer to the code snippet:
Function getAvailabilityMessage(item) {
If (getAvailability(item)){
Var msg =”Username available”;
}
Return msg;
}
A developer writes this code to return a message to user attempting to register a new
username. If the username is available, variable.
What is the return value of msg hen getAvailabilityMessage (“newUserName” ) is
executed and getAvailability(“newUserName”) returns false?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 20 · Page 1 / 2