JAVASCRIPT NOTES
(1) JS in console:-
INSPECTCONSOLE
We directly run following commands in browser
Use as calculator(Math)
(2) DOM manipulation
Bold the word using< br> tag
For changing size [Link](‘b’)[0].[Link]=’40px’
For directly clicking on any option on website we use js
command[Link](‘LC20lb MBeuO DKV0Md’)[1].click()
This will directly goes on that option and open the option….
(3) Chrome extensions
Chrome extensions available on goggle…
We download apps from this…and uses extensions
1. Create features:- add new functionalities to chrome
2. Interact with web:- Modify or read webpage
3. API access:- Use chrome built-in function
4. User experience:- customize
(4) What is programming language
Problemhuman instructionsBinary code in form of 0/1solve
- Giving instructions to computer
- Instructions:- Tells computer what to do.
- These instructions called as code.
(5) What is syntax
- Structure of word in sentence.
- Rules of language
- For programming exact syntax must be followed.
(6) HTML/CSS/JS
Client-side/front-endWeb developmenthtml,css,js
Java/pythonServer side/back-end
Backend+frontend==FullstackMERNmongodb,express,react
1. Display web pages:- Turns HTML code into what you see on screen
2. User clicks:- Helps you to interact with web pages
3. Updates Content:- Allows changes to page using Javascript
4. Load files:- Gets HTML,images,etc..from the server
HTMLOrganizes elemets in tree..
Structure- setups the layout , Content-Adds text,images,links.
Tags:- Uses elements like<p>,<a>
CSS Style(Set looks and fell)
Colors and fonts(Customizes text and background)
Layout(Controls positions and size)
Selectors(Targets specific HTML elements)
JS Do nothing in java
Actions(Enables interactivity)
Updates(Alerts page without reloading)
Events(responds to user actions)
Data(Fetches and sends info to server)