Csaba Kissi Profile picture
Dec 17 11 tweets 3 min read
JavaScript string methods are used to manipulate strings.

Here are 8 of the most commonly used string methods and their examples: Image
1. length()

This method returns the length of a string:

Example:

let str = "Hello World";
console.log(str.length); //outputs 11
2. indexOf()

This method searches for a specified value in a string and returns the position of the match:

Example:

let str = "Hello World";
console.log(str.indexOf("World")); //outputs 6
3. substring()

This method extracts characters from a string between two specified indices, and returns the new sub-string:

Example:

let str = "Hello World";
console.log(str.substring(6, 11)); //outputs "World"
4. replace()

This method searches a string for a specified value and replaces it with a new value:

Example:

let str = "Hello World";
console.log(str.replace("World", "there")); //outputs "Hello there"
5. charAt()

The charAt() method returns the character at the specified index in a string:

Example:

let str = 'Hello World';
console.log(str.charAt(0)) ; // Outputs "H"
6. concat()

The concat() method combines two or more strings and returns a new string:

Example:

let str1 = 'Hello';
let str2 = 'World';
console.log(str1.concat(' ', str2)); // Outputs "Hello World"
7. includes()

The includes() method checks if a string contains a specified string/character:

Example:

let str = 'Hello World';
console.log(str.includes('World')) ; // Outputs true
8. endsWith()

This method checks whether a string ends with the characters of a specified string, returning true or false.

For example:

let str = 'Hello World';
console.log(str.endsWith('orld')); // Output: true
If you like this post, you can bookmark and tag it by replying with @SaveToBookmarks #javascript #free

You can view your bookmarks on savetobookmarks.com Image
That's all, guys.

If you found this list useful, consider:

✅ Follow @csaba_kissi for more content like this
🔔 Enable notifications 👀
🔄 Retweeting the first tweet.

Thanks for your support, guys! 🙏🤝

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Csaba Kissi

Csaba Kissi Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @csaba_kissi

Dec 19
10 Google Chrome extensions that'll make you a super productive developer.

[ Free, of course] ↓
{1} ScribeHow (by @ScribeHow)

This screen recording extension instantly turns any procedure into an instructional.

Perfect for: founders, instructors, business people, and more.

Document and share procedures with 93% less effort.

🔗 getscribe.how/chrome Image
{2} Workona Tab Manager

You can finally feel organized and in charge of your job with the aid of the Workona Tab Manager.

Use it to organize projects, manage tabs, and consolidate your work in the browser.

🔗 chrome.google.com/webstore/detai… Image
Read 13 tweets
Dec 18
If you want to know more about REST API and its advantages open this:
A REST API (or Representational State Transfer Application Programming Interface) is an interface that allows applications to communicate with each other over the internet.
It is based on stateless, client-server communication and often uses HTTP or HTTPS as the communication protocol.
Read 12 tweets
Dec 16
5 Free public APIs you can use for your next project:
Chuck Norris

A free JSON API for hand curated Chuck Norris facts.

rapidapi.com/matchilling/ap…
Api-Football

+940 football leagues & cups. Livescore (15s), live & pre-match odds, events, line-ups, coaches, players, top scorers, standings, statistics, transfers, and predictions.

rapidapi.com/api-sports/api…
Read 7 tweets
Dec 16
If you want to know how to use/manipulate JSON in Javascript open this:
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate.

It is based on a subset of the JavaScript Programming Language.
JSON is a text format that is completely language-independent but uses conventions that are familiar to programmers of the C-family of languages, including C++, C#, Java, JavaScript, Perl, Python, and many others.

These properties make JSON an ideal data-interchange language.
Read 9 tweets
Dec 15
9 Javascript array methods you should master:
1. push()

This method adds one or more elements to the end of an array and returns the new length of the array.
2 pop()

This method removes the last element from an array and returns that element.
Read 11 tweets
Dec 14
A good resume is an essential part of your job search and can make the difference between landing an interview or not.

Showcase your professional experience and make a strong impression!

Here are 9 sites that will generate a perfect resume for you:
1. Canva

Canva is a popular graphic design platform that offers a variety of resume templates you can use to create a professional-looking resume.

You can customize the templates with your own information and add design elements.

🔗 canva.com Image
2. Zety

Zety is a resume builder that offers a variety of customizable templates and helpful tools, such as a spelling and grammar checker and a score that shows how well your resume matches the job you're applying for.

🔗 zety.com Image
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(