where to write javascript code in html code example
Example 1: include script in html
<script type="text/javascript" src="/path/to/script.js"></script>
Example 2: javascript code
function getIntoAnArgument() {
var args = arguments.slice();
args.forEach(function(arg) {
console.log(arg);
});
}