Skip to content

Commit 1c950eb

Browse files
committed
adding some stuff
1 parent c497183 commit 1c950eb

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

coercions-grid/grid.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
}
1616

1717
function formatValue(x) {
18-
var ret;
19-
2018
if (typeof x == "string") {
2119
return "'" + x.replace(/\n/g,"\\n") + "'";
2220
}

oldjs/es3.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<html>
2+
<p>ES3</p>
3+
<script>
4+
var str = "Hello World!";
5+
6+
try {
7+
var r = /^he/i;
8+
if (r.test(str) === false) {
9+
throw new Error("Oops!");
10+
}
11+
alert(str);
12+
}
13+
catch (err) {
14+
alert(err);
15+
}
16+
</script>
17+
</html>

0 commit comments

Comments
 (0)