Concatenating and printing a personal greeting

Report a typo

You are creating a simple web page with a personal greeting. You have two variables, `myName` that holds your name as a string, and `introduction` that holds a greeting message also as a string. Fill the blanks in the code to concatenate and print the greeting and your name together.

Fill in the gaps with the relevant elements
 myName = "John Doe";
var introduction = "Hello, My name is ";
(introduction + myName);
console.logvar
___

Create a free account to access the full topic