ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 83 - Certified JavaScript Developer I discussion

Report
Export

The developer has a function that prints "Hello" to an input name. To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".

What can the developer do to change the code to print "Hello World" ?

A.
Change line 7 to ) () ;
Answers
A.
Change line 7 to ) () ;
B.
Change line 2 to console.log('Hello' , name() );
Answers
B.
Change line 2 to console.log('Hello' , name() );
C.
Change line 9 to sayHello(world) ();
Answers
C.
Change line 9 to sayHello(world) ();
D.
Change line 5 to function world ( ) {
Answers
D.
Change line 5 to function world ( ) {
Suggested answer: B
asked 23/09/2024
shylashri selvamani
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first