Skip to main content
100%

JS Bin

✓ Published0🌍 Public
JJaxonDvl
Last edited Apr 4, 2016
Created on Apr 4, 2016

This example demonstrates a JavaScript function `add10` that returns its input plus ten, with the result 30 logged to the console. The code executes `add10(20)` and prints the output to the browser's console using `console.log`. The implementation is presented in two forms: the compiled "strict" version using `var` and a function expression, and the original source using `const` with an arrow function. The gist contains an HTML file defining the document structure and a JavaScript file with the logic, though no external libraries or data sources are referenced.

AI-generated description

Similar vizzes