Create a function called normalize
that changes '-' to '/' in a given date string.
For example, normalize('20-05-2017')
should output '20/05/2017'
.
This is my attempt:
let d = new Date('27-11-2021');
function normalize(session){
let normal = d.replace('-','/');
return (session);
}