Skip to content
Snippets Groups Projects
Select Git revision
  • 8fab4d99e2eb27cf3d99b4518182af721c4470e2
  • main default protected
  • br_A
3 results

head_024.c

Blame
  • MakeDay.jsx 346 B
    export default function MakeDay(){
        const days = [];
        const date = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
    
        for(let i = 0; i < 7; i++){
            days.push(
                <th className="table_head">{date[i]}</th>
            )
        }
    
        return(
            <thead>
            <tr>
                {days}
            </tr>
            </thead>
        );
    }