If you have any query feel free to chat us!
Happy Coding! Happy Learning!
In "JS Basics - Class I," we'll cover some fundamental concepts and syntax in JavaScript to get you started with the language. JavaScript is a versatile programming language used for web development and much more. Let's dive into some key concepts:
Variables and Data Types: Variables are used to store data. In JavaScript, you can declare variables using
let
,const
, orvar
(older method). Data types include numbers, strings, booleans, arrays, objects, etc.javascriptCopy code
let name = "John"; const age = 30; let isStudent = true; let numbers = [1, 2, 3, 4, 5]; let person = { name: "Alice", age: 25, };
Basic Arithmetic: JavaScript supports basic arithmetic operations like addition, subtraction, multiplication, division, and modulus.
javascriptCopy code
let a = 10; let b = 5; let sum = a + b; let difference = a - b; let product = a * b; let quotient = a / b; let remainder = a % b;
Conditional Statements: Conditional statements help control the flow of the program based on certain conditions. Common ones are
if
,else if
, andelse
.javascriptCopy code
let age = 18; if (age >= 18) { console.log("You are an adult."); } else { console.log("You are a minor."); }
Loops: Loops allow you to repeat code multiple times. Common loops are
for
andwhile
.javascriptCopy code
for (let i = 0; i < 5; i++) { console.log(i); } let counter = 0; while (counter < 5) { console.log(counter); counter++; }
Functions: Functions are blocks of code that can be called multiple times. They help in organizing and reusing code.
javascriptCopy code
function greet(name) { console.log("Hello, " + name + "!"); } greet("Alice"); // Output: Hello, Alice! greet("Bob"); // Output: Hello, Bob!
DOM Manipulation: JavaScript is used to interact with HTML and manipulate the Document Object Model (DOM).
javascriptCopy code
// JavaScript const btn = document.getElementById("btn"); const resultDiv = document.getElementById("result"); btn.addEventListener("click", function () { resultDiv.textContent = "Button clicked!"; });
htmlCopy code
<!-- HTML --> <button id="btn">Click Me</button> <div id="result"></div>
This is just the beginning of JavaScript basics. As you progress, you'll learn more complex concepts like objects, classes, asynchronous programming with Promises and async/await, and much more. Practice and experimentation are essential to gaining proficiency in JavaScript.
You can try running the code snippets above in your browser's developer console or in a code editor to see the output. Happy coding! If you have any specific questions or need further explanation on any topic, feel free to ask.
Comments: 24
Kindly check the lecture number 6. Lifecycle of a Change in 1. Git and Github The above lecture is not related to the course please update it ASAP Thank you
From where can I download the files which love babbar says he has uploaded on dashboard ??
I have attached the link https://github.com/lakshayk12/ANN_optimization_BTP
bro, i paid for the course, but still can't access the course. do something
Paid for the course but it still locked, can solve this problem please, when you take the payment the couse should be unlocked, evey time i have to message for any purchase
Now your Paypal payment is accepted and your course is activated successfully. Please leave your valuable feedback.
Why i am being asked for payment if i am already enrolled in the course
Dear anand, your payment is now updated check your course, apologize for several delays. Please leave your valuable feedback.
thanks its working now
hello ,I have a doubt
hello i have a doubt
hi
I'm paying through my Card, but it giving an error. why ? how we can purchase a course in Pakistan. Paypal is banned here
can we download the videos
i done my payment for mern stack development love babbar but cant acces to course kindly give me access
Dear Krishnapal your payment is already accepted go and check back.
Why i am being asked for payment if i am already enrolled in the course
Dear Shivansh, if you already done your payment then contact us on our official Email id [email protected] or reply here.
Why i am being asked for payment if i am already enrolled in the course
Dear p8354046, if you already done your payment then contact us on our official Email id [email protected] or reply here.
Why i am being asked for payment if i am already enrolled in the course
Dear, Don't worry now your problem is solved check your id.
Why i am being asked for payment if i am already enrolled in the course
Yes bro
I'm facing same issue
Dear, Don't worry now your problem is solved check your id.
i want debit card option
how can i assure that this is not scam?
i have same doubt is this website real or a fraud
No its not any fraud. its genuine if you need any proof please contact us via email.
No it's not any scam, its genuine if you need any proof please contact us via email.
how to do payment ?
Click on Watch now button then click next video then payment option is showing
i am unable to access the video even i have already completed my payment .
Your problem is solved
plz add codes lecture wise ! it wold be great and helpful also
now we have added starter package in lecture 2nd, go now and download it.
how to view this one
Why video not play
Now it's working.
Thank you for the access of the videos. It would be greatful if I could no the way to download the videos
Use idm to download
ok
Hello bro can you share course with me?
hello everyone