Javascript print function

Is there any alternative to the the print() function of Javascript in Codingame ? I want to print without a new line.

Hi,

you can use ‘putStr’ function :

putstr('hello');
putstr('world'); 

=> prints helloworld

1 Like

To get the list of functions, try this :

var obj = this;
var functions = [];
for (p in obj) {
    if (typeof(obj[p]) == 'function')
        functions.push(p);
}
functions.sort();
print(functions);
quit();
1 Like