Notifications
Clear all

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

1 Posts
1 Users
0 Likes
253 Views
(@katterjohnoctavio)
Posts: 721
Noble Member
Topic starter
 

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 ) () ;
    B. Change line 2 to console.log(‘Hello’, name() );
    C. Change line 9 to sayHello(world) ();
    D. Change line 5 to function world ( ) {

Show Answer Hide Answer

Suggested Answer: B
 
Posted : 27/01/2023 1:01 am

Latest Salesforce JavaScript Developer I Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: