Aim of the puzzle: Replace the Grasshopper function
console.log() function to print text to the console.
Walk through of solution: The
console.log() . The value of anything you pass as an argument will be printed.
Tap the empty space below the
console.log() statements that are already there. Then tap the
console button. Next, tap the
.log() button to attach it to
console . Finally, add any string of text inside the parentheses as an argument. Run the code to see the output of your
Sample code solution:
(Tap below to reveal)
print('The print() function was made for Grasshopper.'); console.log('but console.log() can do the same thing'); console.log('Just put the string inside the parentheses.');