Home > Article > Web Front-end > How many types of output does javascript have?
Javascript has three types of output, namely: 1. "document.write()" output method; 2. "alert()" output method; 3. "console.log()" output method.
The operating environment of this article: windows7 system, javascript version 1.8.5, Dell G3 computer.
document.write() alert() console.log()
The first two methods must go back and call toString(), the proximity principle of the prototype chain
[Recommended learning: javascript Advanced Tutorial】
The above is the detailed content of How many types of output does javascript have?. For more information, please follow other related articles on the PHP Chinese website!