Answers for "Formatting Console.log Output"

0

Formatting Console.log Output

var user = new Object();
user.first = "Fred";
user.last = "Smith";

console.log(user.first, user.last);
// Output:
// Fred Smith

console.log(user.first + user.last);
Posted by: Guest on July-14-2021

Browse Popular Code Answers by Language