I found a difference between Lotus Domino SSJS iterpretation and regular Javascript.
Look at this snippet...
var mister = "mister in the hat".replace(" ", "-");
return mister
Regular Javascript does replave only once. The result is "mister-in the hat". SSJS does full replace. The result is "mister-in-the-hat".
Is there any documentation, in what way the SSJS is diferent from regular JS?