SmituCodes
SmituCodes
  • 98
  • 2 762
WHILE LOOP IN JAVASCRIPT
Loops in JavaScript are used to perform repetitive tasks, running a block of code multiple times under specific conditions. Here are the primary types of loops in JavaScript:
1. for Loop
The for loop is one of the most common loops. It’s useful when you know how many times you want to iterate.
let initializes the counter.
is the condition that must be true for the loop to continue.
increments the counter after each loop.
2. while Loop
The while loop repeats as long as a specified condition is true. It’s useful when you don’t know the exact number of iterations.do...while Loop
The do...while loop will execute at least once, even if the condition is false.
for...of Loop
The for...of loop is specifically designed to loop through values in an iterable (like arrays or strings)......#learnhtml5andcss3#codingchallenge #code #webdevelopment #codewithme #codewithharry #frontenddevelopment #education #htmlacademy #htmlcss #css #codehelp #js #upsc #java #codewithharry #frontenddeveloper #javaprogramming #javatutorial #javatutorialsforbeginners #designer #design #engineering #CodingTutorial #CodeWithMe #ProgrammingTips #DeveloperLife #TechTips #CodingJourney #CodeChallenge #JavaScript#Python #Java #CSharp#Ruby #PHP #TypeScript #WebDevelopment #BackendDevelopment#codewithharry #code withharry #FrontendDevelopment #FullStack, #APIs #DatabaseDesign#OOP (Object-Oriented Programming),
#DataStructures #Algorithms#React #NodeJS#Django #Flask#Express, #Angular#VueJS #GraphQL#NextJS #Laravel#SpringBoot #Git#GitHub#Docker #Kubernetes#AWS #Azure#GCP#VSCode #CodingTutorial #CodeWithMe #ProgrammingTips #DeveloperLife #TechTips #CodingJourney #CodeChallenge #viral #viralvideos #youtube #youtubers #codewithharryHashtags: #CSDojo #CodingInterviews #ProgrammingHashtags: #freeCodeCamp #Coding #LearnToCode#codewithharry#codewithherry #shraddhakapra#codingblocks#programminglanguage #codenewbie
มุมมอง: 12

วีดีโอ

JAVASCRIPT KEYBOARD EVENTS
มุมมอง 523 ชั่วโมงที่ผ่านมา
A keyboard event in web development is triggered when a user interacts with their keyboard on a webpage. It’s part of the DOM (Document Object Model) event system and includes three main types of events: keydown: Fired when a key is initially pressed down. This is often used to detect the start of a key press. keypress: Fired while the key is held down. It’s deprecated in most modern browsers i...
MOUSE EVENTS IN JAVASCRIPT
มุมมอง 344 ชั่วโมงที่ผ่านมา
mousedown: Triggered as soon as the mouse button is pressed down over an element. Useful for actions that start with a press-and-hold interaction, like dragging or drawing. mouseup: Triggered when the mouse button is released after a click. Commonly used with mousedown for complete click handling or initiating actions that should happen after a click is released. mousemove: Fires whenever the m...
JAVASCRIPT EVENTS CLICK, DOUBLE CLICK, RIGHT CLICK.
มุมมอง 164 ชั่วโมงที่ผ่านมา
In JavaScript, events are actions or occurrences that happen in the browser, such as a user clicking a button, pressing a key, hovering over an element, or loading a webpage. JavaScript can "listen" for these events and execute code in response. Here’s a breakdown of some key concepts related to events in JavaScript: 1. Event Types Mouse Events: Triggered by mouse actions. click: Fired when an ...
JAVASCRIPT EVENTS
มุมมอง 114 ชั่วโมงที่ผ่านมา
In JavaScript, events are actions or occurrences that happen in the browser, such as a user clicking a button, pressing a key, hovering over an element, or loading a webpage. JavaScript can "listen" for these events and execute code in response. Here’s a breakdown of some key concepts related to events in JavaScript: 1. Event Types Mouse Events: Triggered by mouse actions. click: Fired when an ...
JAVASCRIPT USING RETURN
มุมมอง 327 ชั่วโมงที่ผ่านมา
A function with a return value is a function that performs a task or computation and then returns a result back to the part of the program where it was called. This allows the function to pass data back to the caller, which can then use that result in further computations or decisions. How it Works Return Statement: A function uses the return keyword to specify the value that should be sent bac...
GLOBAL/LOCAL VARIABLES IN JAVASCRIPT
มุมมอง 117 ชั่วโมงที่ผ่านมา
In programming, local and global variables refer to the scope in which a variable is accessible. Local Variables Definition: A local variable is defined within a specific block, function, or method and can only be accessed within that scope. Scope: Limited to the block or function where it was declared. Lifetime: Exists only while the function is executing. When the function completes, the vari...
FUNCTION USING PARAMETERS IN JAVASCRIPT
มุมมอง 3314 ชั่วโมงที่ผ่านมา
In JavaScript, functions can accept parameters, which are values you pass to the function when you call it. Parameters allow functions to operate on different data inputs. Here’s an overview of how to use parameters in functions, along with examples: Defining Functions with Parameters You define a function with parameters by listing them in parentheses after the function name..#learnhtml5andcss...
Why You Shouldn’t Give Up on Coding
มุมมอง 9814 ชั่วโมงที่ผ่านมา
Title: Why You Shouldn’t Give Up on Coding 🚀 Description: Thinking of giving up on coding? We've all been there! Learning to code can feel overwhelming and sometimes discouraging, especially when challenges stack up. But trust me, the journey is worth it! MotivationMonday #StayMotivated #InspirationDaily #NeverGiveUp #BelieveInYourself #MindsetMatters #PositiveVibes #GrowthMindset #DreamBig #Ke...
FUNCTIONS IN JAVASCRIPT
มุมมอง 2316 ชั่วโมงที่ผ่านมา
Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure-a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you must define it somewher...
PROMPT BOX IN JAVASCRIPT
มุมมอง 31วันที่ผ่านมา
Video Title: How to Create a Prompt Box in JavaScript: A Beginner's Guide Description: In this video, I’ll show you how to create and use a prompt box in JavaScript! The prompt() function is a powerful tool for interacting with users, allowing you to gather input directly on your webpage. This tutorial will walk you through using prompts to get user input, manage responses, and handle simple fo...
CONFIRM BOX IN JAVASCRIPT
มุมมอง 16วันที่ผ่านมา
In a TH-cam video about JavaScript's confirm() box, you could cover these points: What is a Confirm Box? Explain that a confirm box is a dialog that asks the user to choose between "OK" and "Cancel," typically used for confirmation before a potentially impactful action. How to Use confirm() in JavaScript: Show a basic example, like confirm("Are you sure you want to proceed?");, and explain that...
ALERT BOX IN JAVASCRIPT
มุมมอง 11วันที่ผ่านมา
ALERT BOX IN JAVASCRIPT
IF-ELSE IF STATEMENT IN JAVASCRIPT
มุมมอง 25วันที่ผ่านมา
IF-ELSE IF STATEMENT IN JAVASCRIPT
TERNARY OPERATOR IN JAVASCRIPT
มุมมอง 11วันที่ผ่านมา
TERNARY OPERATOR IN JAVASCRIPT
IF ELSE STATEMENT
มุมมอง 8วันที่ผ่านมา
IF ELSE STATEMENT
IF STATEMENT IN JAVASCRIPT
มุมมอง 9วันที่ผ่านมา
IF STATEMENT IN JAVASCRIPT
COMPARISION OPERATOR IN JAVASCRIPT
มุมมอง 1014 วันที่ผ่านมา
COMPARISION OPERATOR IN JAVASCRIPT
ASSIGNMENT OPERATOR
มุมมอง 1014 วันที่ผ่านมา
ASSIGNMENT OPERATOR
AIRTHMETIC OPERATORS IN JAVASCRIPT
มุมมอง 1214 วันที่ผ่านมา
AIRTHMETIC OPERATORS IN JAVASCRIPT
DATA TYPES IN JAVASCRIPT
มุมมอง 514 วันที่ผ่านมา
DATA TYPES IN JAVASCRIPT
VARIABLES IN JAVASCRIPT
มุมมอง 2414 วันที่ผ่านมา
VARIABLES IN JAVASCRIPT
HOW TO ADD COMMENTS IN JAVASCRIPT
มุมมอง 721 วันที่ผ่านมา
HOW TO ADD COMMENTS IN JAVASCRIPT
HOW TO ADD HTML TAGS IN JAVASCRIPT
มุมมอง 621 วันที่ผ่านมา
HOW TO ADD HTML TAGS IN JAVASCRIPT
IMPLEMENTATION OF JAVASCRIPT IN HTML
มุมมอง 1721 วันที่ผ่านมา
IMPLEMENTATION OF JAVASCRIPT IN HTML
JAVASCRIPT INTRODUCTION
มุมมอง 2228 วันที่ผ่านมา
JAVASCRIPT INTRODUCTION
CSS ALIGN ITEMS
มุมมอง 7หลายเดือนก่อน
CSS ALIGN ITEMS
CSS JUSTIFY CONTENT
มุมมอง 11หลายเดือนก่อน
CSS JUSTIFY CONTENT
CSS FLEX WRAP
มุมมอง 8หลายเดือนก่อน
CSS FLEX WRAP
CSS FLEX DIRECTION
มุมมอง 10หลายเดือนก่อน
CSS FLEX DIRECTION

ความคิดเห็น