Code has been added to clipboard!

Use of Chrome Debugger

Example

function addText () {
	var firstWord = document.getElementById("input1").value;
	var secondWord = document.getElementById("input2").value;
	document.getElementById("p1").innerHTML = firstWord + " " + secondWord;
}