What is the difference between , and + in the console.log?
问题 pt=new Date(2019,11,12,8,2,3) console.log(pt.getFullYear()," ",pt.getMonth()); gives result 2019 " " 11 console.log(pt.getFullYear()+" "+pt.getMonth()); gives the result as 2019 11 What is the difference between using, and + in this example? 回答1: console.log(pt.getFullYear()," ",pt.getMonth()); The above example passes three separate arguments to console.log. What it outputs depends on how console.log is implemented. It has changed over time and is little bit different between browsers. When