เนื้อหาของบทความนี้จะเกี่ยวกับjs string หากคุณกำลังเรียนรู้เกี่ยวกับjs stringมาเรียนรู้เกี่ยวกับหัวข้อjs stringในโพสต์20 String Methods in 7 Minutes – Beau teaches JavaScriptนี้.
Table of Contents
สรุปเนื้อหาที่เกี่ยวข้องjs stringที่มีรายละเอียดมากที่สุดใน20 String Methods in 7 Minutes – Beau teaches JavaScript
ที่เว็บไซต์SelfDirectedCEคุณสามารถอัปเดตข้อมูลอื่น ๆ นอกเหนือจากjs stringสำหรับข้อมูลที่เป็นประโยชน์เพิ่มเติมสำหรับคุณ ที่เพจSelfDirectedCE เราอัปเดตข่าวสารใหม่และแม่นยำสำหรับผู้ใช้อย่างต่อเนื่อง, ด้วยความตั้งใจที่จะให้ข้อมูลที่ถูกต้องที่สุดแก่ผู้ใช้ ช่วยให้ผู้ใช้เข้าใจข่าวสารทางอินเทอร์เน็ตได้ครบถ้วนที่สุด.
เนื้อหาที่เกี่ยวข้องกับหมวดหมู่js string
วิธีสตริงที่แสดงในวิดีโอนี้: charAt, charCodeAt, concat, endWith, fromCharCode, รวม, indexOf, LastIndexOf, จับคู่, ทำซ้ำ, แทนที่, ค้นหา, แบ่ง, แยก, เริ่มด้วย, ย่อย, สตริงย่อย, toLowerCase, toUpperCase, ตัดแต่ง รหัส: 🔗 แหล่งข้อมูลอื่นๆ ในหัวข้อ: 🔗 Beau Carnes บน Twitter: ⭐JavaScript Playlists⭐ ▶พื้นฐานของ JavaScript: ▶ES6: ▶รูปแบบการออกแบบ: ▶โครงสร้างข้อมูลและอัลกอริทึม: ▶Clean Code: – เราเป็นคนยุ่งมากที่เรียนเขียนโค้ด จากนั้นฝึกฝนด้วยการสร้างโครงการเพื่อการกุศล เรียนรู้ JavaScript แบบฟูลสแตก สร้างพอร์ตโฟลิโอ และรับข้อมูลอ้างอิงที่ยอดเยี่ยมกับชุมชนโอเพ่นซอร์สของเรา เข้าร่วมชุมชนของเราได้ที่ Follow us on twitter: Like us on Facebook: Follow Quincy on Quora:
ภาพถ่ายบางส่วนที่เกี่ยวข้องกับเอกสารเกี่ยวกับjs string

นอกจากการดูข้อมูลเกี่ยวกับบทความนี้แล้ว 20 String Methods in 7 Minutes – Beau teaches JavaScript สามารถติดตามข้อมูลเพิ่มเติมได้ที่ด้านล่าง
คลิกที่นี่เพื่อดูข้อมูลใหม่เพิ่มเติม
บางแท็กเกี่ยวข้องกับjs string
#String #Methods #Minutes #Beau #teaches #JavaScript.
javascript,strings,string methods,charAt,charCodeAt,concat,endsWith,fromCharCode,includes,indexOf,lastIndexOf,match,repeat,replace,search,slice,split,startsWith,substr,substring,toLowerCase,toUpperCase,trim.
20 String Methods in 7 Minutes – Beau teaches JavaScript.
js string.
หวังว่าการแบ่งปันที่เราให้ไว้จะเป็นประโยชน์สำหรับคุณ ขอบคุณมากสำหรับการดูข้อมูลjs stringของเรา
Fabulous explanation thank you so much for sharing your knowledge to us keep posting like this….👌🏼👌🏼👌🏼👌🏼👌🏼😊🙏🏼
Thank you very much, that's very helpful!! Your voice sounds like Sheldon Cooper's', it was like watching 'Fun With Code" ! 😀
Hi I'm a new coder to java I was just wondering in an array I've seen coders use /g alot why is it used
Cool
That's great explain by you 👨💻thanks a lot from🇮🇳 india.
Great job
Good
I'm so used to char as in "CHARCOAL" not char as in "CARE"
A lot of these are similar in Python as well
👍👍👍
I can make a password cracker in js learning this LOL
from : stackoverflow.com – The "g" that you are talking about at the end of your regular expression is called a "modifier". The "g" represents the "global modifier". This means that your replace will replace all copies of the matched string with the replacement string you provide. – I had to find out!! 😁
Amazing video!
very handy and useful. Thanks, FCC
Great video.
Code editor and theme pls?
Is the first one usless ? Cause we can just do like this stringOne [1] == stringOne.charAt(1)
I like your last method of the list. So, Subscribed.
Just loved the tutorials 😍
Anyone else pronounce 'char' as /CHär/??
Good!
Thank you!
Was looking for 'join'.
Love it.. Please do: 20 number methods, 20 array methods.
var str = "freeCodeCamp is the best place to learn frontend and backend development";
str.includes("end"); //returns true
str.startWith("free"); //returns true
str.endwith("end"); //returns false
str.match(/end/g); //returns an array
str.repeat(3); //returns the same string concatenated to itself 3 times
This video is the SH*T lol. I wish all videos were this quick and to the point. Plus gave me every option I needed. THANK YOU!
Hi Sir,
what is the difference between 'str.search' and 'str.indexOf'??
very useful
Nice 👌👌👌👌👌👌 sirji
<html>
<head>
<script type="text/javascript">
var a = "mahesh";
var b = "naresh";
for(var i=0;i<a.length;i++){
for(var j=0;j<b.length;j++){
if(a.charAt(i)==b.charAt(j)){
a.replace(a.charAt(i),'');
b.replace(b.charAt(j),'');
i–;
break;
}
}
}
document.write("<h2>"+a+" "+b+"</h2>");
</script>
</head>
</html>
why my code isn't working?
i got lost at /end/g
Watching this video as a newbie Javascript developer was super insightful. A perfect crash course on possibilities of cool things you can do to modify strings in Javascript.
It was very very useful. Thanks a lot.
I´d love 20 methods from another. 🙂
In my opinion, for beginners is far more effective to learn – how to interact with object types – using LOOPS and CONDITIONALS then to learn a dozen of prototype methods. Not saying that you DON'T need to learn it though.
Grand Summary
charAt – returns character at specified index, myString.charAt(1) will return SECOND letter of string myString.
charCodeAt – same as charAt but returns unicode instead.
concat – concatenates string1 and string2, string1.concat(string2) // string1+string2
endsWith – condition check to determine if a given string ends with a certain character or string; string1.endsWith("abc")
,
fromCharCode – converts unicode values to characters, it is a static method of the String object, so you type String.fromCharCode(desiredCharCode) , where String is the string object and not any arbitrary string.
includes – checks whether the string includes a specified character/string..
indexOf – tells the index of a specified string or character in the input string; inputString.indexOf("Dog"). In case of TWO or more occurrences of the same string/char in the inputString, it will tell index of only the first occurrence !
lastIndexOf – same as indexOf() but returns the index of the LAST occurrence of the specified char or string in the input string.
match – searches the input string for matches of the REGULAR EXPRESSION specified and returns them in an array.
repeat – repeats the string a specified number of times, inputString.repeat(3) // 3 times repeat inputString !
replace – searches a string for a specific sub-string or REGULAR EXPRESSION and replaces it with the specified string. inputString.replace("end", "END")
search – searches the string for a specified sub-string or REGULAR EXPRESSION and tells it's position.
slice – slices or extracts a specified portion of the inputString. inputString.slice(2,4), returns the stuff from index 2 till index 3
split – splits the string, into an array of sub-strings, upon the occurrence of the character specified. e.g inputString.split(" ") will split the string EVERYTIME a space (" ") occurs in the inputString and push the character coming UP TILL the space as a new entry in the array. ( but not including the space itself ? )
startsWith – checks if a string begins with a specified character/sub-string; conditional check.
substr – similar to slice, extracts a sub-string from the inputString, starting from the given initialIndex, and going up to the number of subsequentDigits, including the character at initialIndex in the count as well. inputString.substr(initialIndex, subsequentDigits) . Watch in video if it's hard to understand.
substring – Ditto copy of slice, better to look at https://stackoverflow.com/a/2243835 for a better understanding of differences.
toLowerCase – makes ALL the letters in string to lower case
toUpperCase – exact opposite of toLowerCase() .
trim – removes WhiteSpace from EITHER SIDE of the inputString; inputString.trim().
'Care.' …ok
Excellent! Loved it.
How many string methods do you people need?
whats the use of this all?
Good one…..
Is there a way freeCodeCamp can use bigger font, or zoom method so that we can see everything from the source code and the console.log……..Thanx
Thanks man this was so handy!