JavaScript String Methods | JavaScript Tutorial in Hindi #14
Вставка
- Опубліковано 27 сер 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 - ua-cam.com/channels/eVMnSShP_Iviwkknt83cww.htmljoin
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
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
let fr = "Aditya"
let n = fr.length;
for (let i = 0; i < n; i++){
console.log(fr[i])
}
0,1,2,3,4,5
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.❤😅
Code Backup Repository: github.com/CodeWithHarry/ultimate-js-course-youtube
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!
// 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 st="Zubair";
For(let k of st){
Console.log(st)
}
Using for loop
For(let i=0; i
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 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
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
This is an adorable Javascript course. My today's Strings method class was terrific.
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
The Answer of the QuickQuiz is-
let name = "Harry and Fyese"
for (let i = 0; i < name.length; i++) {
console.log(name[i])
}
let string = 'Chronicles';
let len = string.length;
for (let i = 0; i < len; i++) {
console.log(string[i]);
}
naughty hora ke
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
13:28
let name = "shahab"
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🙂
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
// QuickQuiz: Use a for loop to print a string
let name = "Harry";
for (i=0; i < name; i++);
name =name;
console.log(name)
// 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
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
#Quick Quizze
let pr=prompt("Enter your name")
for(let i=0; i
let na = "Anik Hassan"
for(let i = 0;i
let name = "Husnam"
let n = name.length;
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")
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
// 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])
};
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
let n= "sanjay \tsingh"
let len=(n.length)
for (let i=0;i
Harry and shivika both are in relationship ❤❤❤
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);
QUICK QUIZ
let name = "zulfiqar ali";
for (let i=0; i
Best Coder in the world is Codewithharry
Harry.. God bless you with success 😘
Harry vai Zindabad ✊✊
ua-cam.com/users/shortsGJWciEaulgI
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
//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])
}
Streak Going On❤️❤️ Bhiyaa..Covered all 14 lectures
ua-cam.com/users/shortsGJWciEaulgI
Shivika bhabhi 😁😛
let name ="jyoti"
let n=name.length
for(i=0;i
// for tag to string
let fr = 'Rohini'
for (i=0; 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 string = 'Harry'
for (let i in string) {
console.log(string[i])
}
Sir kya ye method chalega ?
Yeah bro its working
let name = "Happy"
let n = (name.length)
for(let i =0;i
// to print the str with the help of for loop.
let k="viratkohli";
console.log(k.length)
for(let i=0; i
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 ❤️
Harry ❤️ shivika,😀
let a = 'talha';
for (let i=0; i
// QUICK QUIZ
let n =prompt("enter the value of n")
for(i=0;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 st=prompt("enter a sentence here");
let n=st.length;
for(let i=0 ; i
Wonderful teaching methodology love it. Really Really appreciated not getting bored in a single video. Thank you very much
16:40
let str = "Shivika";
for (let i = 0; i < str.length; i++) {
console.log(str[i]);
}
let str = "Concatenation";
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]);
}
//Quick Quiz
// Use a for loop to print string
let str = "Ishtiaq" + "Ahmed"
let i;
for(i=0;i
QuickQuiz : let friend = "Rohan"
for(let i = 0; i < friend.length; i++){
console.log(friend[i])
}
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
13:34
let mystr=prompt("Enter the string")
for(let i=0 ; i < mystr.length ; i++)
{
console.log(mystr[i]);
}
let str = "ORACLE"
for(let i=0;i
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
13:47
let fr="wasif"
for(let i=0;i
//use a for loop to print a string
let str = "This is the string";
for(let i =0 ; i
// QuickQuiz: Use a for loop to print a string
let frn = "Shubham"
for (i=0; i
👍👍
//printing a sentence using for loop
let string = "Hello world"
string = string.replaceAll(" ","")
for(let i = 0; 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]);
}
QuickQuiz..........ans)
let str = "Sandesh";
for (let i = 0; i
let Profession="Developer";
// Quick Quiz Solution:
for (let i = 0; i < Profession.length; i++) {
console.log(Profession[i]);
}
let i =0;
let name="Ashish";
while(i
Good job
@@SonuSingh-rv2cu Thanks
U r great Cwh. its just a perfect learning
Thanks for this valuable course
13:30 name = " Madhurya"
For(let i = 0; i
13:20 QUICK QUIZ:
let goat="jon jones";
for(let i=0;i
let coder = "Shreya";
for(let i =0;i
let name="Harsh"
let ans="";
for(let i=0;i
Let str="Ashish"
For (let i=0;i
Wrong !! It will only print the length write console.log(str[i])
let name = "Roshan"
len = name.length
for (i=0; i
best ever course that i have ever seen on youtube really thanku so much harry bhai
let name = 'Abdul Basit'
for (let i = 0; i < name.length; i++) {
const print = name[i];
console.log(print);
}
str = "Amir Hussain"
for(let i=0; i< str.length; i++){
console.log(str[i])
}
let str = 'Hello Friends'
for(let i = 0,i
let name=prompt("Enter any name ")
for (let a in name) {
document.write(name[a])
document.write('')
}
Sir quick quiz is as follows:
let name = "Ishaan"
for(i = 0; i < name.length; i++){
console.log(name[i])
}
// program to print a string.
let s= prompt("Enter a string:")
for (let i=0;i
str3 = 'Ashay Gupta'
for(let i = 0;i
Quick quiz answer:
let a = "Chaitanya";
let b = a.length;
for (i = 0; i < b; i++){
console.log(a[i]);
}
Quick Quiz :
let name = "Bunny";
1st method
for(let i = 0; i < name.length;i++){
console.log(name[Object.keys(name)[i]]);
}
2nd method
for(let i of name){
console.log(i);
}
let name = prompt("Enter Your Name")
for (i =0; i < name.length; i++) {
console.log(name[i])
}
let name="keshav";
for( let i=0 ; i
13:35 Quick Quiz
let name="Rabinarayan";
for (var i = 0; i < name.length; i++) {
console.log(name[i]);
}
console.log(name.concat(name[i]));
This course is very helpful.u r bestest teacher as compared to paid teacher's. I'm really enjoying this course nd its easy to understand as u explain it nicely 👍😊
Quiz Answer =
let fr = "Shivika"
for(let i =0 ; i
#quick quiz
let str="Saagar"
len=str.length
for(let i=0;i
let str="shohev"
for(let i=0;i
let str ="Write any thing";
for(let i=0;i
13:48 Quiz
let myString = " Umair Ahmad";
for (let i = 0; i < myString.length; i++) {
console.log(myString[i]);
}