I would like to write the console.log output to a div layer.
For example:
document.write(console.log(5+1)); //Incorrect, random example
Can someone give me a solution to my problem?
Thank you.
EDIT:
what i meant is, for example:
console.log("hi");
and it shows the output "hi" on the screen.
Note: An example: http://labs.codecademy.com/#:workspace
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…