Skip to content

scriptEd-HSFI/extendedStrings-april6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Extended Strings

Getting started

  • You can paste starter.js in JSBIN (preferred) or fork and create a cloud9 project.
  • You'll need to use the Javascript prompt method, so here is an example.
    var favoriteColor = prompt('What is your favorite color');
    console.log(favoriteColor)

Instructions

  1. Ask the user for their full (first and last) name. Store it in a variable and then print it.
  2. Put the first name in its own variable. Repeat for the last name. Print each variable.
  3. Print the last letter of their first name and the first letter of their last name.
  4. Add the following to the beginning of the first name variable: "Your name is ". Print it.
  5. Add the following to the end of the last name variable: "!". Print it.
  6. Concatenate the first name and the last name together and store it in a new variable called x. Print it.
  7. Ask the user how old they are. Store it in a variable and then print it.
  8. Add the following to the end of variable x: "And you're [age] years old!". Print x.

Deliverables

Your JavaScript code, either a JSBIN link or Github Repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors