Create a variable named firstName
and store the string Sam
as the value.
Create another variable named lastName
and store the string Smith
as the value.
Join both firstName
and lastName
and assign it to a new variable named fullName
.
Finally using the variables firstName
, lastName
and fullName
, print the below two sentences to the console.
Your first name is [First Name] and last name is [Last Name].
Good Morning [Full Name]! Have a great day.