what is the equivalent of Java’s System.out.print() in javascript

It seems console.log() is the equivalent of System.out.println()

How to print strings in the same line with multiple calls?

Like: console.log("1");console.log("2"), but print in the same line.