WHAT IS JAVASCRIPT?
JavaScript as we may know it, is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive. Where HTML and CSS are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user.
Functionalities of JavaScript
For a long time JavaScript was only used by programmers to build
interactive web-pages. Well, JavaScript can do a lot more than I can cover in this article.
Here are some basic things JavaScript is used for:
- Adding interactive behavior to web-pages: JavaScript allows users to interact with web pages. There are almost no limits to the things you can do with JavaScript on a web-page. These are just a few examples: • To hide or display more information with the click of a button • Change the color of a button/any container when it gets hovered • Slide through a carousel of images on the homepage • Zooming in or out on an image • Playing audio and video in a web-page • Displaying animations • Using a drop-down hamburger menu.
- Creating web and mobile apps: Various JavaScript frameworks can be used in developing and building web and mobile apps. JavaScript frameworks are collections of JavaScript code libraries that provide developers with pre -written code to use for routine programming features and tasks.
-
Building web servers and developing server applications: JavaScript can be used to build simple web servers and develop the back-end infrastructure using one of JavaScript frameworks which is Node.js.
- Game development: Yes of course JavaScript can be used to develop and create browser games.
- JavaScript can be used to to change HTML content, it can be used to change HTML styles (CSS) and also to change HTML attributes.
- JavaScript can be used to validate data. The beauty of JavaScript is that you can build anything with it (not literally everything.)
Please Note: This post is an assignment given to me by my teacher where am learning web development at OsMaxin Developers, if you are in Nigeria you can check them out, they have good records of training developers for over a decade.
PLEASE I NEED COMMENTS TO GET GOOD SCORE
Top comments (2)
Can we use only JavaScript to create a website 🤨
Well, if you create every single HTML tag with JS, then why not?
But, why do that when you can just use HTML?
You can, but it is time consuming you spend more time creating tags than building your website so it is better to go with HTML, CSS and JS.