Home  >  Article  >  Web Front-end  >  How many types of output does javascript have?

How many types of output does javascript have?

藏色散人
藏色散人Original
2021-04-25 11:07:512201browse

Javascript has three types of output, namely: 1. "document.write()" output method; 2. "alert()" output method; 3. "console.log()" output method.

How many types of output does javascript have?

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
How many types of output does javascript have?
How many types of output does javascript have?

[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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn