Remakers - 3.13 Developing Procedures JS Hacks
Apply your skills to basic procedure development in Javascript.
Q1 (Easy)
Which of these procedures is named wrong, provide a short explanation of justification
function mixIngredients()
function doIt()
function makeLeftTurn()
Explanation Here: __ is right because..
Q2 (Medium)
Finish the code to have a correctly named procedure
function makeLeftTurn() {
moveForward() ;
rotate180() ;
moveForward() ;
}
//Todo: add corresponding procedure definitions
//here- replace this line with your code {
console.log("Moving forward.");
}
//here- replace this line with your code {
console.log("Turning left");
}
//here- replace this line with your code {
console.log("Moving forward again to complete left turn.");
}
//Run the procedure
makeLeftTurn()
### Q3 (Hard)
Write code to fulfill the requirements
Doing a dance! πΊπ
Must have
1. A shimmy left procedure
- Print `super cool left slide`
2. A shimmy right procedure, print `even cooler right slide`
3. Doing a bow to the crowd, print `Great dance!`, `the audience claps at your bow!`
//Code away!