JavaScript
it allows you to make web pages more interactive you can accessing and modifying the content and markup used in a web page while it is being viewed in the browswe
what can javaScipt do in the browser ?
Access Modify Program React
You can specify a set of steps for the browser to follow such as :
- Gallery script
- Mortgage calculator
- Animations
You can specify that a script should run when a specific event has occurred such as:
- A button is pressed
- A link is clicked on
- A cursor hovers over an element
Script :
it is a series of instructions that a computer can follow step by step to achieve a goal
Expression :
operations :
- Assignment:
color = 'beige';
- Arithematic:
area = 3 * 2;
- String:
greeting= 'Hi 1 + 'Molly'
Functions :
it is a group a series of statements perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of statements).
calling the function return value