+ 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 ?

13th Apr 2020, 12:57 AM
Marina Khamis
Marina Khamis  - avatar
9 odpowiedzi
+ 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.
13th Apr 2020, 2:33 AM
EmmanueLZ.
EmmanueLZ. - avatar
13th Apr 2020, 2:23 AM
Gordon
Gordon - avatar
+ 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
13th Apr 2020, 11:44 AM
Rohit Maurya
Rohit Maurya - avatar
+ 2
By creating codes in javascript. Watch other people's code.
13th Apr 2020, 1:59 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
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/
14th Apr 2020, 5:20 PM
Sebastian Pacurar
Sebastian Pacurar - avatar
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
14th Apr 2020, 8:07 PM
Manish Sunuwar
Manish Sunuwar - avatar
0
مرحبا
14th Apr 2020, 9:01 PM
mustafa mostafa
mustafa mostafa - avatar