Espruino/tests/test061.js
Gordon Williams f3d6e0bc83 First commit
2013-09-26 14:39:04 +01:00

9 lines
229 B
JavaScript

// New string from constructor
var a = new String();
var b = new String("Hello World");
var c = new String("ABC");
String.prototype.count = function() { return this.length; }
result = a=="" && b=="Hello World" && c.count()==3;