1. Your first task is to print out an ASCII fish with a caption. It should look like the example below: Look, a fish! ><(((\"> 2. Now you get to create an ASCII animal of your own creation! It can be whatever you'd like, but it must also include a caption or text that indicates what the animal is (or supposed to be). Your animals can be one line, and in one console.log(), like the fish, or you can create multiple line animals by including multiple console.log() statements! Feel free to search online for inspiration, but you must not copy someone else's ASCII animal exactly as is (that is, you must make it unique to you). Note: There are certain characters, like backslashes (), double quotes ("), and single quotes () that JavaScript uses in special ways. For example, double and single quotes are used to designate text. If you want to use these characters in your ASCII animals, you need to escape them by placing a single backslash in front of them. . Example: if you want to use two single quotes as eyes, like (' '), you'd need to type console.log("(\ \')"). Example: if you want to use a backslash on the left and right sides, like \......\, you'd need to type console.log("\\......\\") × 1▾ function main() { // Create your fish here: 10 11 12 13 14 23456789SAA console.log(); // Create your own animal here! 15 16 17 18 19 20 21 222222 25 console.log(); // If you'd like, create more animals here! 23 } main();
1. Your first task is to print out an ASCII fish with a caption. It should look like the example below: Look, a fish! ><(((\"> 2. Now you get to create an ASCII animal of your own creation! It can be whatever you'd like, but it must also include a caption or text that indicates what the animal is (or supposed to be). Your animals can be one line, and in one console.log(), like the fish, or you can create multiple line animals by including multiple console.log() statements! Feel free to search online for inspiration, but you must not copy someone else's ASCII animal exactly as is (that is, you must make it unique to you). Note: There are certain characters, like backslashes (), double quotes ("), and single quotes () that JavaScript uses in special ways. For example, double and single quotes are used to designate text. If you want to use these characters in your ASCII animals, you need to escape them by placing a single backslash in front of them. . Example: if you want to use two single quotes as eyes, like (' '), you'd need to type console.log("(\ \')"). Example: if you want to use a backslash on the left and right sides, like \......\, you'd need to type console.log("\\......\\") × 1▾ function main() { // Create your fish here: 10 11 12 13 14 23456789SAA console.log(); // Create your own animal here! 15 16 17 18 19 20 21 222222 25 console.log(); // If you'd like, create more animals here! 23 } main();
Chapter16: Graphics
Section: Chapter Questions
Problem 14RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT