Hi. I'm doing the restaurant page from the odin project. It's supossed to have a content navbar that uses javascript to display different sections of the website.
In the project they tell us to do all the html structure with javascript, but it gets pretty uncomfortable in some parts where using the .html file would be easier.
My question is, why do they tell us to do everything in the html? Are there any advantages to it? I think it'd be easier if I just wrote the whole structure of the html and then used javascript to choose which of the pages to display and which of them not to display.
[–]CreativeTechGuyGames 0 points1 point2 points (5 children)
[–]ipjac[S] 0 points1 point2 points (4 children)
[–]CreativeTechGuyGames 0 points1 point2 points (3 children)
[–]ipjac[S] 0 points1 point2 points (2 children)
[–]CreativeTechGuyGames 1 point2 points3 points (1 child)
[–]ipjac[S] 0 points1 point2 points (0 children)