+ 3
How can I understand JavaScript ?
I studied the course of JavaScript and i'm aware of the basics but I don't know how to apply it or how to use it, what should i do or how should i practice it ?
9 Answers
+ 5
Marina Khamis hello,
Javascript allows you to give interactivity to your web page, so you could try a simple thing first:
Imagine you have a html file with just a tag <h1> with text inside.
That text color is by default black.
Try to select that element h1 with Javascript and change its color in js.
Then one step further you could try to add a button in the html, and you would like that when the user click the button it changes the color.
Then add another button, and that one when clicked could make appear a new element on your html.
And so on...
This way you will learn to manipulate the DOM, To change the style, to create element, to construct and call functions.
Also when you look at a code as the ones posted here, see the interactivity of the page ( ex: the buttons produce something, a calcul, a color change) then look the html part find that button look at all about it, the attributes like class or id or function ) and then in the js file, see if you can recognize, analize the syntax about it...+ tutos.
+ 8
By practice, try these Mini-Projects
https://code.sololearn.com/W0jt01Ob69QG/?ref=app
https://code.sololearn.com/W83awRDRmp6h/?ref=app
+ 4
You should give alerts messages in each of yours codes and try to gives a prompt also once you aware of giving this small small alert .you will understand JavaScript more easily
+ 3
Hay Marina Khamis you may come to personal chat with me to clear your doubles.
By the way you can go through this resources
https://www.000webhost.com/blog/learn-javascript/amp/?__cf_chl_jschl_tk__=2bd7453234b868dbc9fbe48e0740d4e262007d4b-1586741716-0-AU8z-Y9X9NcChd3G4L_QN_O0QFu12jlgw4lf9TxzdsbUQjQa2sWac3eiclOxFMW7uYymuIirr898N4aFuq9IcZgS1XjSstqyHnKIgCfM7A7tFsdzdhEk1WM1_yFeOwrcrU1wktoHJUr452M3qtIZIR9KRH679lOqWcuJ2yLJJy5u9FHpUn79g3bd8n1rGQgf6rzIA9m95QjTpJIBC45z_aGL6drXYWplnPwhb5-me7YJm_j802-jDIgw9Ly8Mq3nd2FKo0-BRtFGEAZhOy0FlObQVA1-XupxDzp8HCn8Rjwh3KsuCQohvG4hP2BwcsRKXA
+ 2
By creating codes in javascript. Watch other people's code.
0
if you're a beginner, w3schools helps a lot. javascript can work only with html and css on the frontend, so you need knowledge in those areas as well.
https://www.w3schools.com/
0
Build small projects like to-do list app, budget app, calculator app, etc.
After accomplishing this JS mini projects.
It will help you to gain knowledge.
After that try to projects that is weather app, chatbot, etc
0
Ł
Ų±ŲŲØŲ§