JavaScript String Functions | JavaScript String Methods - JavaScript Tutorial 87

preview_player
Показать описание
Notes for You:: JavaScript String Functions.

var name = "I am javascript language";
d.w(name); // I am javascript language

JavaScript String Properties:

length:
- returns the total number of characters in a given string.
Ex:

JavaScript String Functions:

charAt(index:Number):String
- returns a new string containing a character at the specified index.
Ex:

charCodeAt(index:Number):Number
- returns the ASCII value of the character at the specified index.
Ex:


indexOf(value:String):Number
- searches the string from left to right and returns the index of the first occurrence of the given value .
Ex:

lastIndexOf(value:String):Number
- searches the string from left to right and returns the index of the last occurrence of the given value.
Ex:

toLowerCase():String
- returns a new string, with all uppercase characters converted to lowercase.
Ex:

toUpperCase():String
- returns a new string, with all lowercase characters converted to uppercase.
Ex:


substr(startIndex:Number, len:Number):String
- returns a substring consisting of the characters that start at the specified startIndex and with a length specified by len.
Ex:

substring(startIndex:Number, endIndex:Number):String
- returns a string consisting of the characters specified by startIndex and all characters up to endIndex -1.
Ex:

slice(startIndex:Number, endIndex:Number):String
- returns a string that includes the startIndex character and all characters up to endIndex -1.
Ex:

startsWith(value:String):Boolean
- returns true if the given string begins with the given string value else returns false.
Ex:

endsWith(value:String):Boolean
- returns true if the given string ends with the given string value else returns false.
Ex:

concat(str1:String, str2:String,... ):String
- returns a new string by combining the given strings.
Ex:
d.w( "I".concat(" am"," JavaScript") );
d.w("I" + " am" + " JavaScipt");

split(seperator:String):Array
- splits a String object into an array of substrings by dividing it wherever the specified seperator occurs.
Ex:
d.w(words[0]); // I
d.w(words[1]); // am
d.w(words[2]); // javascript
d.w(words[3]); // language

valueOf():String
- returns the primitive value of a String object.
Ex:
var number = new String("244");
d.w(typeof number); // object

Note:

=========================================

Follow the link for next video:
JavaScript Tutorial 88 - JavaScript RegExp Object | JavaScript RegExp Methods

Follow the link for previous video:
JavaScript Tutorial 86 - How to create Strings in JavaScript | JavaScript Strings

=========================================

JavaScript Tutorials Playlist:-

=========================================
Watch My Other Useful Tutorials:-

jQuery Tutorials Playlist:-

jQuery UI Tutorials Playlist:-

Bootstrap Tutorials Playlist:-

=========================================

Subscribe to our YouTube channel:-

Join as member of our YouTube channel:-

Become our Patron:-

Visit our Website:-

Download our Notes from Instamojo:-

Buy our Products on Spring:-

=========================================
Follow us:-

Google My Business:-

Google Blog:-

LinkedIn:-

Facebook:-

Twitter:-

Tumblr:-

Pinterest:-

=========================================

Despite my inconsistent uploads; Thanks for being amazing learners and still sticking with me on YouTube.

=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
Рекомендации по теме
Комментарии
Автор

SUBSCRIBE, SHARE & SUPPORT:
VISIT & LEARN AT FREE OF COST:

ChidresTechTutorials
Автор

Thanks for this tutorials, I have compleated all,
one request ..
please upload adv javascript with some project
(if you have tutorials for adv-js let me know, if it is chargeable i will pay for it.. bcus ur teaching style is awesome...)

sheefasanaullah
Автор

Sir I completed Js .I am waiting for more videos from you sir.thank you sir. I hope you will upload more videos for JS

hardikluhar
Автор

Thank you so much sir for the all the video series you made in java script.I watch them all and learnt things i never knew about js before.Please continue the series if you can because nobody can teach like you do.Thanks again.

chamnil
Автор

would like to see more regarding Class vs function. thanks!

yizhang
Автор

closure video for JS sir .


Very confusing sir

prabu
Автор

Thank-You so much Sir for the Playlist... :)

ShubhamSingh-mquw
Автор

Hi Sir,
As I have watched your JS tutorials last year it was 87 no’s that time.
Also you wanted to upload more tutorials in this list later. Will you upload pls?
Or if don’t mind, you do have JS paid course for advance level pls?
I do believe that you are busy person but your teaching technique very much deep and so clean!!

Pls make sure about it. I’m from Bangladesh.
Thanks & Regards

ashrafulalam
Автор

Area of square inscribed in circle program can u send me..if possible

sweetyvlogs
Автор

sir can you make videos on programs in javascript

krcinemas
Автор

Sir,
Before now in your Javascript playlist i have seen 104 Javascript videos and now they became 87.
Sir, did something missing Or you remove them???

mahlud
Автор

Sir how to create copy to clipboard in JavaScript.. when click the text, the text copy in clipboard....

pravatmete
Автор

sir can you please upload more videos, I think this playlist is not complete, i am unable to find Arrays videos😢

AbdulBasit-expw
Автор

Hi
Sir,
I have question which was asked in an interview
so can u please tell me the solution
question:
solution: ??
desired o/p is to get sum of all numbers

vaishaliuchekar
Автор

hello
sir please tell me the expected answer for following line..


var arr = readLine().split(' ').map(arrTemp => parseInt(arrTemp, 10));

vaishaliuchekar
Автор

Hi how to swap two strings in js..ex hello hi
Result will be
hi hello

sweetyvlogs
Автор

Sir I completed Js .I am waiting for more videos from you sir.thank you sir. I hope you will upload more videos for JS

prabu