+ 1

Why should anyone use JavaScript frameworks to create HTML pages?

"You can output almost everything in the webpage using JavaScript. Many JavaScript frameworks use this to create HTML pages." Why should anyone use JavaScript frameworks to create HTML pages? Why not to write simply some html?

30th Sep 2018, 7:46 AM
www
3 RĂ©ponses
+ 2
1. "Why not to write simply some HTML?" You can't write a for loop in HTML, not even an if/else condition statement. Well, you can make a website without those, but it won't benefit many people. That's the reason to use a scripting language, for the sake of simplicity I'll just say JavaScript. 2. "Why should anyone use JavaScript frameworks to create HTML pages" and not plain JavaScript? Abstraction. A framework has helper methods that will save you from writing thousand lines of code. It can separate the data from the control mechanism, so you won't have to think about mind boggling logic to be effective. This is actually a matter of preference. People don't have much time, so why waste it to create something that others already done?
30th Sep 2018, 8:36 AM
HoĂ ng Nguyễn Văn
HoĂ ng Nguyễn Văn - avatar
+ 2
You are welcome to write simply some HTML. (I like to get by for a long as I can on just HTML and CSS for performance reasons, so I'm with you there.) Once your website gets large, frameworks offer scalability and ease of maintenance advantages. It's the difference between problems you would have when you have one or two pet sheep compared to the problems you would be facing having herds of sheep.
30th Sep 2018, 10:46 AM
Janning⭐
Janning⭐ - avatar