Skip to content

ltw-summer-reviews/javascript-syntax-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Javascript syntax challenges

A summer review project to practice basic Javascript.


Details

  • Approx. completion time: 4 hours
  • Deliverables: 6 HTML files, 6 CSS files, 6 Javascript files

Complete these series of six little challenges for learning Javascript syntax. They grow in complexity and difficulty as you progress through them.

1. Letter looper

▸ View the demo video

Create a function in Javascript that will request the user enter a letter and write that letter out ten times.

The final output should look like this:

a
a
a
a
a
a
a
a
a
a

2. Letter looper triangle

▸ View the demo video

Take the letter looper a step further by creating a triangle out of the letters: line 1 should have 1 copy, line 2 should have 2 copies, all the way to the 10th line having 10 copies of the letter.

The final output should match this:

a
aa
aaa
aaaa
aaaaa
aaaaaa
aaaaaaa
aaaaaaaa
aaaaaaaaa
aaaaaaaaaa

3. Hello, Person

▸ View the demo video

Create a small application that shows a text form field to the user, they can enter their name, press a button, and the application will write: “Hello, Thomas.” (or whatever their name is).

The final output should look like this:

Hello, Thomas.

4. Name judger

▸ View the demo video

Similar to the above application, but instead write out different sayings based on what name they enter.

Come up with some sort of name judging logic and display a message for different conditions. The logic could be how many letters long it is, or what letter it starts with, or the actual name itself.

The final output should look like these examples:

Whoa, your name is really short, Fe.
My name starts with a “T” too, Tamara.
Edith is a really great name!

5. Phrasal template word game

▸ View the demo video

Create a form that accepts a bunch of words, like verbs, nouns, etc. Those words will be placed into a template to generate a fun story, like Mad Libs.

You can use the content provided in the download or make up your own.

6. Interactive story

▸ View the demo video

Create a interactive multiple choice story, like Choose Your Own Adventure. Each answered question branches the story in a different direction.

You can use the content provided in the download or make up your own story.


Checklist

  • ❏ All challenges completed with user experience matching demo videos.
  • ❏ HTML, CSS & JS properly validated.
  • ❏ Has lots of detailed commits.
  • ❏ No empty or “Untitled” <title> tags.
  • ❏ No extra, unused files in the repository.
  • ❏ Folders organized properly.
  • ❏ Files & folders follow naming conventions.
  • ❏ Code files properly indented.
  • ❏ Set up as a hosted GitHub repository with gh-pages.

Relevant tutorials & tools


Asking for help

  1. Ask someone else from class if they’re available.
  2. Create an issue on GitHub Issues inside your repository; tag me, @thomasjbradley, in the issue and I’ll respond there. I may not be as fast, because it’s the summer, but I’ll definitely respond.

Licenses & copyrights

☛ Refer the the license & copyright statement

About

A summer review project to practice basic Javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published