0% found this document useful (0 votes)
0 views1 page

3 JavaScript Basics

The document provides an overview of JavaScript basics, covering syntax and data types, operators and control flow, functions and scope, DOM manipulation, and event handling. Key topics include variable declarations, function types, and methods for manipulating HTML elements and handling events. It serves as a foundational guide for understanding essential JavaScript concepts and techniques.

Uploaded by

rohit.mybox
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views1 page

3 JavaScript Basics

The document provides an overview of JavaScript basics, covering syntax and data types, operators and control flow, functions and scope, DOM manipulation, and event handling. Key topics include variable declarations, function types, and methods for manipulating HTML elements and handling events. It serves as a foundational guide for understanding essential JavaScript concepts and techniques.

Uploaded by

rohit.mybox
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

JAVASCRIPT BASICS

1. Syntax & Data Types


- Variables: var, let, const
- Types: Number, String, Boolean, Object, Array, null, undefined

2. Operators & Control Flow


- Arithmetic, comparison, logical
- if/else, switch, for, while, forEach

3. Functions & Scope


- Function declarations vs. arrow functions
- Parameters, return values, local/global scope

4. DOM Manipulation
- document.getElementById, querySelector
- element.innerHTML, element.style
- createElement, appendChild, removeChild

5. Event Handling
- addEventListener('click', callback)
- Event object, preventDefault(), stopPropagation()

You might also like