how do i do the mole in a hole challenge
i don't know how to do it fully and i need an answer
i don't know how to do it fully and i need an answer
In Step 2 of the Moles in Holes Challenge, we are asked to
Add two parameters to the drawMole function, to tell
it where to draw the mole
- one for the x position
- the other for the y position
The difference between arguments and parameters is subtle, but important.
Remember that an argument is the data that you pass to the function when the function is called. In order to pass arguments, you need to include parameters in your function definition.
A parameter is part of the definition of the function. Parameters let coders know what data can be passed to a particular function.
In this video that is just before this challenge, (Function Parameters) at about 1:49, Pamela demonstrates how to add parameters to the `drawWinston` function definition.
Bài đăng bị đóng bình luận.