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

24th Oct 2020, 4:07 PM
Mr. Knight
6 Respuestas
24th Oct 2020, 4:50 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 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.
24th Oct 2020, 4:11 PM
Maxwell Anderson
Maxwell Anderson - avatar
+ 2
Davide and galaxy coding . Thank you . I appreciate it . Have a bright day .
24th Oct 2020, 5:16 PM
Mr. Knight
+ 1
Any obvious examples to make it more clear in my mind . I would be grateful if anybody introduce a source about it .
24th Oct 2020, 4:13 PM
Mr. Knight
+ 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
24th Oct 2020, 4:49 PM
Davide
Davide - avatar
+ 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.
26th Oct 2020, 1:53 PM
JS Fan