Print Var in JsFiddle

后端 未结 12 1630
眼角桃花
眼角桃花 2020-11-30 16:18

How would I print something to the result screen in JsFiddle from my JavaScript. I can\'t use document.write(), it doesn\'t allow it, neither print

12条回答
  •  一整个雨季
    2020-11-30 16:35

    Might not do what you do, but you can type

    console.log(string)
    

    And it will print the string into the console of your browser. In chrome push CTRL + SHIFT + J to open the console.

提交回复
热议问题