JavaScript String Methods | JavaScript Tutorial in Hindi #14
HTML-код
- Опубликовано: 10 сен 2024
- Link to the Repl - replit.com/@co...
Join Replit - join.replit.co...
Download Notes - www.codewithha...
Ultimate JS Course Playlist: • JavaScript Tutorials f...
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr] - • Python Tutorial For Be...
Python Advance[3.5 Hr] - • Python Programming Cou...
Python[1 Hr] - • Learn Python In Hindi ...
Python[2 Hr] - • Python Tutorial In Hin...
Python[15 Min] - • 15 Minute Python Tutor...
JavaScript[1 Hr] - • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr] - • Learn Php In One Video...
php[2.3 Hr] - • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min] - • HTML 5 Tutorial For Be...
CSS[8.5 Hr] - • CSS Tutorial In Hindi ...
CSS[1.4 Hr] - • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr] - • How To Make a WordPres...
Angular[2 Hr] - • Angular Tutorial in Hindi
Java[2.3 Hr] - • Java tutorial in hindi 🔥
Web Scraping[1 Hr] - • Web Scraping Tutorial ...
MongoDB[2 Hr] - • MongoDb Tutorial For B...
Numpy[1 Hr] - • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr] - • Linux Tutorial For Beg...
JQuery[1.1 Hr] - • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr] - • Git & GitHub Tutorial ...
►Complete course [playlist]:
React - • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java - • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django - • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo - • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular) - www.codewithha...
►Facebook - / codewithharry
►Instagram - / codewithharry
Twitter - / codewithharry
Comment "#HarryBhai" if you read this 😉😉
On your request, I have revamped the channel membership and added more levels.
Click the join button to check out more - ruclips.net/channel/UCeVMnSShP_Iviwkknt83cwwjoin
SHIVIKA + HARRY OHHOHOHO
@@retrogames2810 😂😂😂😂😂
let name = sonu{
for(i=0;i
let n=prompt("enter the number")
n=Number.parseInt(n)
let alfa="abcdefghijklmnopqrstunxxyz"
for (let i=0;i
YOU MAKE SO EASY TO LEARN
let fr = "Aditya"
let n = fr.length;
for (let i = 0; i < n; i++){
console.log(fr[i])
}
0,1,2,3,4,5
14:42 important point: Strings are immutable in JavaScript
Strings are immutable in all languages
@@satyamkarn3277 have you used C++
@@sounaksaha1455 Yes I have , My Bad😁😁
Java provides both for immutable there we have string and for mutability feature we have stringbuffer.....
@@enjoy.....1365 and stringbuilder as well
QUICK QUIZ
let name = prompt("Enter Your Name")
For (i =0; i < name.length; i++) {
console.log(name[i])
}
I HAD USED A PROMPT HERE.
I HAD FIRST USED A REGULAR STRING. THANKS TO YOU SIR. FOR YOUR EFFORTS WE ARE LEARNING WITH EASE.
It can be done using for-of loop
why you used name [i] there?
@@VeerSodhai is refered to index , i just incresed and name[1] , name[2], name[3] and so on , and prints the character at that index
No it can't print character ..it print index only
😊
Thanks dude i just gotta trouble there you helped me.❤😅
I completed the quiz, after pausing the video as soon as you told it was a quiz and started doing it, and I got the answer. The code goes as follows:-
let name = "John"
for(let i=0; I
kiska code copy kiya
@@mr.innovation2693 lol
Also you can do this
for(let i=0;i
@@z1008z this is more time complexed code
@@Melorange is just another method of doing that!
Code Backup Repository: github.com/CodeWithHarry/ultimate-js-course-youtube
let name="Yasowant";
for(i=0;i
You don't need to do 'name.length-1'....it will not print all the letters... instead name.length will b right to use if you want to print all the letters
@@baria8391 do not write
actually his code is right, although he used name.length - 1 but to cover it up he used
@@creativevilla1592 agreed
if you try witing it with document .write it would not work. it will only work with console.log
// Quick Quiz - Print a string using for loop 😇
// Using for loop
for (let i = 0; i < name.length; i++) {
console.log(str[i]);
}
// Using for-in loop
for(n in name) {
console.log(name[n]);
}
// Using for-of loop
for(n of name) {
console.log(n);
}
bro u didn't define name 😂😂
Can u tell me plz why use [i]
In console.log (name[i])
@@YawmalQiyamah i is a help to print a variable because i equal ho chuka hai na name.length
Can we print the name as it is like in one line?
let str="Bidyut"
console.log( `Normal Output is ${str}` )
for ( let i=0; i
thanks bro❤
Can u tell me plz why use [i]
In console.log (name[i])
Mujhe question he smj ne aaya tha pr aapka ans check krke sb smj aagya thanks
@@YawmalQiyamah kuch bhi use kar sakta ha
Sir isme i already has been declared bata rha
13:22
let i;
let name_un = prompt("Enter your name");
for(i=0;i
let i;
let name_un = prompt("Enter your name");
for(i=0;i
name_un = name_un.concat(name_un[i])
Let st="Zubair";
For(let k of st){
Console.log(st)
}
Using for loop
For(let i=0; i
// quick quiz : use a for loop to print a string
let flower = 'tulip';
for (i=0; i
(i) this will. Print the values of i which is 0,1,2,3...
@@KING-if4ch I added flower[i] which will print a string, along with that (i) will print the values 0,1,2.....and so on
@@learner801 hnn thats ok but question was only gor printing string thats why 😅
@@KING-if4ch yeh ikr, I just printed the values too🙂
let n = "Somnath";
for(let i=0; i
i is not defined...
// QuickQuiz: Use a for loop to print a string
let fr = "Binod"
for (let i = 0; i
// QuickQuiz: Use a for loop to print a string
const prompt=require("prompt-sync")();
let str = prompt("Enter your name")
for (i=0; i
use this :
const prompt=require('prompt-sync')({sigint:true});
let x=prompt("Enter a string - ")
for(i=0;i
let string = 'Chronicles';
let len = string.length;
for (let i = 0; i < len; i++) {
console.log(string[i]);
}
naughty hora ke
let na = "Anik Hassan"
for(let i = 0;i
Use a for loop to print a string
let name = "Programmer"
for(let i=0; i
instead of i
Instead of using '10', you should use 'name.length'. Because when you take this name as a user input you will not aware of the length earlier.
Bhai console.log(name[I])
Ki jagah
Console.log(name)
Se bhi kaam ho jayga
let name= "pushpa" let n = name.lenght for(let i = 0; i
This is an adorable Javascript course. My today's Strings method class was terrific.
solved the Quick Quiz in 2 ways you taught Harry !
//# QuickQuiz:
let friend= "Ashwagandha"
for (let i of friend){
console.log(i)
}
//also
let friend2= "whythiskolaveri"
for (let i=0; i
13:28
let name = "shahab"
for(let i=0; i
13:32
let name = "Maaz"
for (let i = 0 ; i < name.length ; i++)
{
console.log(name[i])
}
console.log("THIS JS COURSE IS VERY HELPFUL AND ALSO AMAZING FOR BEGINNERS")
let name = "Husnam"
let n = name.length;
for(let i=0; i
Literally i am learning all these things fourth time because i want to be master ultra pro max in Js.
I already had learnt these things in Python, Java and previous playlist of Js.
You are stuck in tutorial hell
let n= "sanjay \tsingh"
let len=(n.length)
for (let i=0;i
Thank you for this content and please do the complete video series on spring, spring boot, hibernate , JDBC ,java SE8 features , advanced java concepts, with some demo projects .which would be great help sir
bro he said it would be complete
let a = 'talha';
for (let i=0; i
The Answer of the QuickQuiz is-
let name = "Harry and Fyese"
for (let i = 0; i < name.length; i++) {
console.log(name[i])
}
// for loop for printing each letter of a name
let name = prompt("what is your name");
let n = name.length;
for (let i = 0 ; i < n ; i++){
console.log(name[i])
};
#Quick Quizze
let pr=prompt("Enter your name")
for(let i=0; i
let name1 = "Divyanshu";
let n = name1.length;
for( let i = 0 ; i < n ; i++);{
console.log(name1[0]);
console.log(name1[1]);
console.log(name1[2]);
console.log(name1[3]);
console.log(name1[4]);
console.log(name1[5]);
console.log(name1[6]);
}
QUICK QUIZ ANSWER :
TIMESTAMP : 13:18
CODE:
let name = "Harry Bhai";
// Using Traditional For Loops
for (let i = 0; i < name.length; i++){
console.log(name[i]);
}
// Using For Of Loops
for (let char of name){
console.log(char);
}
// Using For In Loops
for (let key in name){
console.log(name[key]);
}
QUICK POINT FORM VIDEO :
TIMESTAMP : 14:41
STRING ARE IMMUTABLE MEANING :
When every you try to change or update string so its not possible. All the function we use on string will not change the existing string but return a new string.
EXAMPLE :
For Example When we apply a **slice** method on string it will not change the existing string but create new string and copy past existing string content to new string and return.
int name hota hey kya
@@orbitxyz7867 Sorry For That it must be "let".
@@yogesh7931 yes 😁😁 other program is good
let name = "Happy"
let n = (name.length)
for(let i =0;i
Streak Going On❤️❤️ Bhiyaa..Covered all 14 lectures
ruclips.net/user/shortsGJWciEaulgI
Shivika bhabhi 😁😛
let str = "Shivendra";
for (let i = 0; i < str.length; i++) {
console.log(str[i]);
}
thank u bro bhut kuch sikhne ko mil rha hai
Harry vai Zindabad ✊✊
ruclips.net/user/shortsGJWciEaulgI
let st=prompt("enter a sentence here");
let n=st.length;
for(let i=0 ; i
Harry and shivika both are in relationship ❤❤❤
// to print the str with the help of for loop.
let k="viratkohli";
console.log(k.length)
for(let i=0; i
Harry.. God bless you with success 😘
let coder = "Shreya";
for(let i =0;i
Quick Quiz
1.
let String = "Kaisel", nstring = "";
for (let i = 0; i != String.length; i++) {
nstring += String[i];
} // Using For-Loop
console.log(nstring);
2.
let Monarch = "Ashborn", i = 0, nMonarch = "";
while (i != Monarch.length) {
nMonarch += Monarch[i];
i++;
} // Using while-Loop
console.log(nMonarch);
//Use a for loop to print the length of a string
let name="Mubashir";
for(let i = 0;i< name.length;i++){
console.log(i+" "+name[i])
}
Harry, just do one favour.
You used to post a zip file which include all the files, making it easier to download all files at once. However, now we need to download each and every file individually, making it a lot harder than before.
Hence, if possible, all the files of completed chapters must be put in a zip file.
Hope you don't disappoint many others like me
Harry sir not harry
chapters ke notes download karne mein zor aa rha hai re tereko!! itta bada paragraph likha itne mein to do baar download ho jaaye!
let str='Hello this is a string'
for (i=0;i
Console.log(i) i think
If you need to print every character of the string
@@skannu3155 yes but line's of number print ho rhe hai console.log(i) se
let string = 'Harry'
for (let i in string) {
console.log(string[i])
}
Sir kya ye method chalega ?
Yeah bro its working
// QuickQuiz: Use a for loop to print a string
let name = "Harry";
for (i=0; i < name; i++);
name =name;
console.log(name)
Everythings perfect but there is one thing that i think u should do give us homeworks......the practice set is like exercises that we do....but homework would be our work only and their solution should be revealed after 2-3 vids...hope u will do this....love from Pak ❤️
let str = "ORACLE"
for(let i=0;i
Harry ❤️ shivika,😀
16:40
let str = "Shivika";
for (let i = 0; i < str.length; i++) {
console.log(str[i]);
}
Waiting for my 12th over😂, I have to learn Java and Java script 😁
Completed HTML and CSS and now Very exited for Java script
don't wait just start it
@@vaibhavchauhan000 JEE -MAINS is a problem
@@Divyanshu.Sharan hope you will clear👍
@@vaibhavchauhan000 Thank you bro ♥️
let str = "Concatenation";
for(let i = 0; i
// QUICK QUIZ
let n =prompt("enter the value of n")
for(i=0;i
QUICK QUIZ
let name = "zulfiqar ali";
for (let i=0; i
// for tag to string
let fr = 'Rohini'
for (i=0; i
//use a for loop to print a string
let str = "This is the string";
for(let i =0 ; i
Sir quick quiz is as follows:
let name = "Ishaan"
for(i = 0; i < name.length; i++){
console.log(name[i])
}
let z = prompt("enter your name")
let y = prompt("enter how many times do you want to print your name");;
y = parseInt(y);
for(i=0;i
//printing a sentence using for loop
let string = "Hello world"
string = string.replaceAll(" ","")
for(let i = 0; i
13:34
let mystr=prompt("Enter the string")
for(let i=0 ; i < mystr.length ; i++)
{
console.log(mystr[i]);
}
let a = "ashik";
let b = "borsha";
let c = (a+b);
for(let i = 0; i
let str = "Shahzd";
for (let i = 0; i < str.length; i++) {
console.log(str[i]);
}
13:47
let fr="wasif"
for(let i=0;i
@13.30:
// Use a for loop to print a string
for(let i = 0; i < fr.length; i++) {
console.log(fr[i]);
}
Best Coder in the world is Codewithharry
Let str="Ashish"
For (let i=0;i
Wrong !! It will only print the length write console.log(str[i])
let name = 'Abdul Basit'
for (let i = 0; i < name.length; i++) {
const print = name[i];
console.log(print);
}
Wonderful teaching methodology love it. Really Really appreciated not getting bored in a single video. Thank you very much
let i =0;
let name="Ashish";
while(i
Good job
@@SonuSingh-rv2cu Thanks
13:30 name = " Madhurya"
For(let i = 0; i
// QuickQuiz: Use a for loop to print a string
let frn = "Shubham"
for (i=0; i
👍👍
str = "Amir Hussain"
for(let i=0; i< str.length; i++){
console.log(str[i])
}
QuickQuiz : let friend = "Rohan"
for(let i = 0; i < friend.length; i++){
console.log(friend[i])
}
let str = 'Hello Friends'
for(let i = 0,i
let Profession="Developer";
// Quick Quiz Solution:
for (let i = 0; i < Profession.length; i++) {
console.log(Profession[i]);
}
Hii Harry bhai as you told to complete quick quiz I pause the video and immediately compleate it
here is a code:
let name = "Mann"
for(let i = 0; i
//Quick Quiz
// Use a for loop to print string
let str = "Ishtiaq" + "Ahmed"
let i;
for(i=0;i
let str="shohev"
for(let i=0;i
str3 = 'Ashay Gupta'
for(let i = 0;i
QuickQuiz..........ans)
let str = "Sandesh";
for (let i = 0; i
#solution
let name = "sneha"
for(let i = 0 ; i
literally you saved my 27k i came chandigarh for full stack developer course but institutes are like hell literally they want only money but you hats offffffffffffff youuuu bhai you saved my 27k thank you
let name="Harsh"
let ans="";
for(let i=0;i
let name = "Harshil"
let num = (name.length)
for(let i =0 ; i
let cn = "56"
alert("This game contains random number ")
let n = prompt("😄 enter the number")
n = Number.parseInt(n)
while(n != cn){
if (ncn){
alert("greater than the correct number")
n = prompt("😄 enter the number")
}
else{
alert("🐵 🐵 you entered correct number 🐵 🐵 ")
} }
alert("🐵 🐵 you entered correct number 🐵 🐵 ")
i made this game by only watching 14 lecturs thank you harry bhai.
try this in console this is "random number finding" game
13:43
let naam = "Akhand Pratap Singh";
for(let i = 0;i
let str = "Wednesday";
for (let i = 0; i < str.length; i++){
console.log(str[i])
}
Quick Quiz Ans:-
let i;
let fr="Shaikh"
for(i=0;i
Let s=promt ("enter a string");
for (int i=0;i
Yes now I feel that my level is going up and that's only bcz of you u r a amazing person itne asani se samjhate ho aap ki sab aram se ho jata hai now I have that confidence if I was stuck in somewhere then I try to solve it myself that's only bcz of u ❤❤
let str = "laxman";
for(let i = 0; i < str.length; i++){
console.log(str[i]);
};
output:-
l
a
x
m
a
n
let name=prompt("Enter any name ")
for (let a in name) {
document.write(name[a])
document.write('')
}
//QUIK QUIZ
let name2 = "Harish"
for(let i=0;i
#quick quiz
let str="Saagar"
len=str.length
for(let i=0;i
I am from Pakistan.You are a genius and your way of teaching and explanation is too good.Thank you Harry bhai❤️❤️
Answer of the quiz
let string = "pepe"
for(i = 0; i < string.length; i++) {
console.log(string[i])
}
// ty for this majistic course harry :)))
Quiz Answer =
let fr = "Shivika"
for(let i =0 ; i