0
What are the actual uses of JavaScript in a standard website ???
I learned 99% of JaavaScript but I'm confused about HOW to use it in a web page
6 Respuestas
+ 12
I made a code for you:
https://code.sololearn.com/Wi9b1dIvl00H/?ref=app
+ 2
You use Javascript in .js files linked in HTML with script tags. Javascript just allows you to use an actual programming language to manipulate behavior of the web page.
+ 2
Davide and galaxy coding .
Thank you .
I appreciate it .
Have a bright day .
+ 1
Any obvious examples to make it more clear in my mind .
I would be grateful if anybody introduce a source about it .
+ 1
Mr. Knight Here one of the "hot today" codes, in which some JavaScript has been used to realize the dream of every ice cream: to dance!
https://code.sololearn.com/WcvCV5tu1HcU/?ref=app
+ 1
You have learned 99% of JS. You is da real hero!
The main uses of JS in a website are
1. For interactivity:
Dropdowns, carousels, spinners, modals etc
Most designer-developers use pure (vanilla) js or small libraries like jquery, bootstrap etc
2. For single page applications
These are web apps that load all their necessary content on first page load. Further navigation will not cause a page reload. Advanced libraries/framework are usually used e.g Angular, React, Vue, Ember etc.
3. Server side language
With the advent of Node.js and Deno.js, JavaScript can also be used to handle web requests and pre-process responses just like PHP.
You might want to rethink your location on the roadmap. There are many areas you might have not paid attention too like ES 2015 syntax: promises, arrow functions, symbols, typed arrays etc
You might also look into unit testing, machine learning, game development etc.