Talk to Programmers

When you are programming, you always have to debug your codes. The way to debug is to show the variable value during the code processing. In the following contents, we will show how the programmer can submit information to the show-up functions. There are four show-up functions that can be used in html for JavaScript programming. They are console.log(), document.write(), element.innerHTML, and window.alert(). The following buttons show how they work.

An line of text.