Search⌘ K

Solution: Make Decisions

Explore how to combine variables storing favorite color and animal into a single sentence using the plus operator. Learn to display the message in the console with console.log, developing basic decision-making in your JavaScript code.

We'll cover the following...

This code combines two pieces of information (favorite color and animal) into a single descriptive ...