mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
9 lines
229 B
JavaScript
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;
|