HI all, Please does anyone knows why this is not working? console.log returns the first character as expected from a string, but is always giving me error even though I input ...
Have you tried to put inside parenthesis? const position = (id % 2 === 0) ? 'left' : 'right'; const dateType = (position === 'right') ? 'time-2' : 'time-1';
Have anyone met this problem in pug before? Is rendering '< >' around the first date and I can't understand why. Thanks for support in advance
Why id in the first line is using parenthesis and curly brackets? Could not be like this? const TimelineCard = id => { ...