js-runtime/example.html
2023-09-09 13:22:26 +02:00

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>