+ 2

How do i put a space between the min and hours in the variable z ?

function happen() { var x = new Date().getHours();document.getElementById("show"); var y = new Date().getMinutes();document.getElementById("show"); var z = x , y ; document.write(z) ;

23rd Feb 2021, 5:55 PM
Francisco Bensaia
Francisco Bensaia - avatar
1 Odpowiedź
+ 3
var z = x + " " +y ;
23rd Feb 2021, 6:29 PM
Bahhaⵣ
Bahhaⵣ - avatar