added date-property.js

This commit is contained in:
Julian Dolby 2013-01-08 20:38:32 -05:00
parent 9aa474fdb1
commit 309fb33689
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
var t = "this is a long string";
var bar = t.substring(0, 10);
var d = new Date("October 13, 1975 11:13:00");
var document = {
fun: function _fun(x) {
return x;
}
};
document[d](bar);