count.js

var count = 0; function cc(card) { count += card; return count; } // Add/remove calls to test your function. cc(2);cc(3);cc(4);cc(5);cc(6); // Output. console.log(count);
A simple number count

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.