2 answers

What is JavaScript ?

Asked Viewed 14 times

2 answers

Oliver’s Answer

Updated

To add to Josh's answer, JavaScript (or JS) is used in web pages and is generally used to help make web pages 'intelligent' and interactive because other programming languages cannot do what is needed or it is just easier to do in JavaScript. JavaScript is always used alongside other languages like HTML and CSS to create a web page.

When I say more intelligent I mean that JavaScript allows you to do things with data (like add 3 days to the current date and display this on the webpage or order data in a table in alphabetical order and show you this on the page or check to see if something is true like is it currently morning or afternoon and then show you a different message on the webpage depending on which is it etc...). JavaScript can also be used to respond to an event too on the screen such as if a user clicks on a button then do something in response, like refresh the screen. This is easily achieved in JavaScript, but you cannot do these with HTML and CSS for example.

This is a great tutorial with JavaScript and it allows you to play with coding in JS online: https://www.w3schools.com/js/default.asp

Oliver recommends the following next steps:

  • Try out W3Schools online to learn and practice online coding with JavaScript (Free Resource) https://www.w3schools.com/js/default.asp

Josh’s Answer

Updated

Javascript is a programming language.

It's most famous for being the language that powers your web browser. (There's some javascript code running in the web page you're reading right now!) But it's also a popular choice for writing server programs as well.