Please enable JavaScript to use CodeHS

  • Tracy
  • Holiday

Valentine Message

In this project, students will use conditionals and user input to write a message for their Valentine.

Easy

1 Hour

High School

Middle School

Project Description

Background

In this project, students will use conditionals and user input to write a message for their Valentine.


Your Task

Complete the following tasks:

  • Ask the user for 2 names
  • Check how many letters are in each name
  • Create and call the writeMessage function to add text to the screen based on the length of each name

Project Demo

Explore this program before assigning it!

Project Overview

Here is an outline of the project activities: