16 lines
258 B
HTML
16 lines
258 B
HTML
<script src="runtime-checker.js"></script>
|
|
<script>
|
|
function sum(a_number, b_number) {
|
|
return a + b;
|
|
}
|
|
|
|
// I need to get rid of this
|
|
sum = sum.addRuntimeChecker();
|
|
|
|
var result = sum(1, 2);
|
|
console.log(result); // 3
|
|
|
|
sum("1", 2); // Error
|
|
</script>
|
|
|