JS

JavaScript Code Output Challenge - String prototyp...

5.

What is the output of the following code?

let str = "   Hello World   ";
console.log(str.trim());
"Hello World   "
"   Hello World"
"   Hello World   "
"Hello World"