Skip to content

Instantly share code, notes, and snippets.

@tantaroth
Last active October 6, 2016 06:33
Show Gist options
  • Save tantaroth/548c8fef54f7e1b48d588f21b58c9400 to your computer and use it in GitHub Desktop.
Save tantaroth/548c8fef54f7e1b48d588f21b58c9400 to your computer and use it in GitHub Desktop.
Script on Javascript - show info in console
function say (msg) {
console.log(msg);
}
var total = 0;
function sum (numbers) {
for (var num in numbers) {
total += numbers[num];
}
return total;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment