mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 15:35:06 +00:00

This patch adds String.prototype.charAt() to demonstrate that prototype property lookup works, and that you can call a prototype function on an object, and it will do what you expect. :^)
2 lines
42 B
JavaScript
2 lines
42 B
JavaScript
var foo = "foobar";
|
|
print(foo.charAt(3));
|