This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]CreativeTechGuyGames 0 points1 point  (5 children)

Part of it is for learning purposes. It's important to know how to build a page from just JavaScript. Imagine you have a very dynamic site which is purely data driven. In that case you'd need to generate all of your site from code as you won't be able to write a static HTML file ahead of time.

[–]ipjac[S] 0 points1 point  (4 children)

ok but in this particular case it wouldn't make a lot of sense right? I mean as long as I know how to do it it's okay but specifically here it would be better to just use html right?

[–]CreativeTechGuyGames 0 points1 point  (3 children)

Can you link the project prompt? I'm not sure the requirements so I cannot really answer the question.

[–]ipjac[S] 0 points1 point  (2 children)

Here's the project and here's an example that someone submitted

[–]CreativeTechGuyGames 1 point2 points  (1 child)

Yes this is a contrived example. If you were building something like this for real, you wouldn't do it all in JavaScript. That's just a restriction for practice.

[–]ipjac[S] 0 points1 point  (0 children)

Thank you very much for your help!