
💻 Python Full-Stack Dev | Django • FastAPI • Flask | React.js • Vue.js | AI/ML | DBs & Cloud Deploy | Tech Educator 🚀| #Data #Cloud #Innovation
Python
Joined October 2025
- Tweets69
- Following4
- Followers6
- Likes39
Pinned Tweet
Start learning AI / ML / Gen AI skills.
The demand is growing fast
Don’t wait. Don’t delay. Start now.
Build skills -> Build projects -> Build your future
Follow @Python_FSD for daily AI & coding content
#AI #MachineLearning #GenAI #DataScience #Python #LearnAI #Tech
Async/Await in JavaScript
Async/Await is a modern way to handle asynchronous operations in a cleaner and more readable way.
It is built on top of Promises and makes async code look like synchronous code
#JavaScript #AsyncAwait #AsyncJS #WebDev #Coding #LearnJS #PythonFSD
1
29
async function fetchData() {
try {
let res = await fetch("api.example.com/data");
let data = await res.json();
console.log(data);
} catch (err) {
console.log("Error:", err);
}
}
fetchData();
1
13
- async -> makes function return a Promise
- await -> waits for result
- try...catch -> handles errors
- Async/Await = Clean & readable async code
#JavaScript #AsyncAwait #AsyncJS #WebDev #Coding #LearnJS #PythonFSD
16
Promises in JavaScript ?
A Promise is an object that represents the result of an asynchronous operation it may complete now, later, or fail.
- States of a Promise
- Pending -> Initial state (waiting)
- Fulfilled -> Operation successful
- Rejected -> Operation failed
#Coding
1
19
const fetchData = new Promise((resolve, reject) => {
let success = true;
if (success) {
resolve("Data fetched successfully");
} else {
reject("Error fetching data");
}
});
fetchData
.then((res) => console.log(res)) / success
.catch((err) => console.log(err))
1
13
- resolve() -> Success
- reject() -> Failure
- .then() -> Handle success
- .catch() -> Handle error
- Promise = Handle async result (Success / Failure)
#JavaScript #Promises #AsyncJS #WebDev #Coding #LearnJS #PythonFSD
12
Callbacks in JavaScript
A Callback is a function that is passed as an argument to another function and is executed later, after a task is completed.
Why use Callbacks
- To handle asynchronous operations
- To control execution order
- To run code after a specific task finishes
1
14
Asynchronous JavaScript
Asynchronous JS allows code to run without blocking execution.
It lets tasks like API calls, timers, and file loading run in the background while other code continues.
Why use Async?
- Faster performance
- Non-blocking execution
- Better user experience
1
18
What is DOM in JavaScript?
The DOM (Document Object Model) is a programming interface that represents an HTML page as a tree of objects.
It allows JavaScript to access, update, and manipulate elements dynamically
- Change text
- Add/remove elements
- Handle user interactions
1
20
Accessing Elements in JavaScript
JavaScript uses the DOM to access elements using id and class
/by id
const el = document.getElementById("title");
/by class
const items = document.getElementsByClassName("item");
/modern way
const box = document.querySelector(".box");
1
17
When do we use this?
- Update UI after API call
- Handle user input (forms)
- Show/hide elements dynamically
- Add real-time changes to page
- Access DOM -> Update UI -> React to Data (API/User)
#JavaScript #DOM #WebDev #Frontend #Coding #LearnJS #PythonFSD
33
Error Handling in JavaScript
Error handling helps manage runtime errors without breaking your program
Use try...catch to handle errors gracefully.
- try -> Code to test
- catch -> Handles error
- finally -> Always runs
- Handle errors -> Keep app running smoothly
#JavaScript
22
Types of Events in JavaScript :
- Mouse Events -> click, dblclick, mouseover
- Keyboard Events -> keydown, keyup
- Form Events -> submit, change, input
- Window Events -> load, resize, scroll
- Different Events -> Different User Actions -> Dynamic Web Apps
#JavaScript #WebDev
24
Events in JavaScript
Events are actions that happen in the browser, like click, typing, scrolling, or hovering.
Why do we use Events?
- To make websites interactive
- To respond to user actions
- To create dynamic behavior (like forms, buttons, animations)
#JavaScript #AI
1
23