Inside the code editor we've tried to define and call a function that takes a number as argument and prints the Double of that number to the console.
So when we ran the code, we expected it to print:
20
but it seems like we made some mistakes because when we run our code we get an error instead.
Assignment:
Your task is to fix our code such that no errors will be produced and it will print the desired output.
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check