Question: Task: We are going to list a number of characters and their Damage and HP values using JavaScript in CodePen. The catch is, we are

Task: We are going to list a number of characters and their Damage and HP values using JavaScript in CodePen. The catch is, we are only going to list the GOOD ones. We do not want no dinky characters fighting our dragon here in the future.

Example here:

Task: We are going to list a number of characters and their

  • List through a set of characters (you are not given the set of characters for the sake of this assignment). Assume this set of characters was already put into the program.
  • Only display characters that have
    • 10 or more health (number)
    • deal 2 or more damage (number)
    • and are a warrior (true/false)
    • If the character has the letter "A" in it, make the text red

Use THIS LINK (https://codepen.io/joker_jonesy/pen/GbEmRx) to grab the array you will use in your application.

Name: Bob Damage: 2 Health: 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!