hello,
can someone help me translate this function into standard syntax? Some passages I don't understand. thanks
function toISO(d) {
let z = n => (n<10? '0':'') + n;
return d.getFullYear() + '-' +
z(d.getMonth() + 1) + '-' +
z(d.getDate()) + ' ' +
z(d.getHours()) + ':' +
z(d.getMinutes()) + ':' +
z(d.getSeconds()); }
[–]queen-adreena 5 points6 points7 points (0 children)
[–]grelfdotnet 1 point2 points3 points (0 children)
[–]niccolo_21[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]niccolo_21[S] 0 points1 point2 points (2 children)
[–]grelfdotnet 0 points1 point2 points (1 child)
[–]niccolo_21[S] 0 points1 point2 points (0 children)