Notifications
Clear all
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 ( ) {
Suggested Answer: B
Posted : 27/01/2023 1:01 am