Tell us what’s happening:
I understand the format but I don’t understand why console.log(); in the function can print something out. Would i need to make a variable first? I guess my question is “What is console.log”?
Your code so far
// Example
function ourReusableFunction() {
console.log("Heyya, World");
}
ourReusableFunction();
// Only change code below this line
function reuseableFunction(){
console.log("Hi World");
}
reuseableFunction();
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15
.
Challenge: Write Reusable JavaScript with Functions
Link to the challenge: