- Manipulate an object using JavaScript
- Explain what
()
does in JavaScript - Use error messages correct syntax mistakes
Visit Code Combat and complete each of the missions in the beginner campaign using the steps below. These directions might seem tedious for something so simple, but it's important to get in the habit of going through these steps.
Write pseudocode and an initial solution for each mission in your my_solution.js
file. Please write the title of each mission (as a comment) as you go.
###1. Pseudocode Write simple pseudocode for each challenge. For example, write something like:
// move right x2
// move up 1x
// ATTACK!
###2. Initial Solution Translate your pseudocode into code and see if it achieves the goals. If it doesn't quite work, modify it. Once you achieve each of the goals in each part, paste your successful code into your file.
###3. Answer the following: When you are finished with all of the levels, answer the following questions. You may want to look at some resources on JavaScript before answering.
- What is
this
referring to? Think programming-wise rather than in the terms of the game. - What does the
()
do in JavaScript? - What is the point of the semicolons?
In the reflection section of your 'my_solution.js` file, reflect on your learning. Use the reflection guidelines.. NOTE: Reflections are mandatory!