0

How can i improve my javascript language ?šŸ˜­šŸ˜­šŸ˜­

I was completed Javascript ago month, but i am seems my javascript improvement very slowly. I was created a project , under the javascript, i use display none and display block for hide element/box etc. My Wrost Code like : https://code.sololearn.com/W9G81rSh7h0x/?ref=app Anybody have best idea for improvement Javascript code ?

1st Feb 2021, 5:07 PM
Sajid Ali
Sajid Ali - avatar
3 Answers
+ 2
There is nothing wrong with display:none; other than it been stressful and imperative. Most of the time, I find myself using front-end frameworks like Svelte, Vue, React, Alpine. These frameworks make it super easy to program dynamic UIs with declarative templates. If you are not a fan of using libraries/frameworks, you can try Web Components and HTML <template>. https://developer.mozilla.org/en-US/docs/Web/Web_Components https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template
2nd Feb 2021, 5:06 PM
Ore
Ore - avatar
0
Do you want me to suggest ways to improve that code or to improve your JavaScript knowledge in general?
1st Feb 2021, 7:59 PM
Ore
Ore - avatar
0
Ore in Advance.. Mean How can we write my best way for code,,
2nd Feb 2021, 4:39 PM
Sajid Ali
Sajid Ali - avatar