function sayHello() { console.log("Hello World"); } sayHello(); function add(num1, num2) { console.log(num1 + num2); } add(5, 10); function substract(num1, num2) { return num1 - num2; console.log("After the return"); // it won't be logged because it's after return } const result = substract(10, 2); console.log(result, substract(20, 5));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter