Skip to content
  • Android Apps
  • Contact
  • iOS Apps
  • Privacy Policy

Tutorials Made

Ultimate Tutorial Blog

  • Home
  • Programming
    • PHP
    • C Programming
    • JavaScript
      • jQuery
    • Java
    • Python
    • Perl
    • HTML
      • HTML5
  • Spoken English through Tamil
    • English Conversations
  • Indian Languages
  • Youtube
    • Hindi Language
    • Kannada Language
    • Tamil Language
  • Contact

Tag: substr string javascript

  • Home
  • substr string javascript
javascript
JavaScript

Find if a string contains a substring in JavaScript!

December 31, 2017February 15, 2018 agurchand

This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.

JavaScript
1
2
3
var str = 'testing';
var substr = 'tin';
alert(str.indexOf(substr) !== -1);

The above

Read More

Find Here

  • 10 Wedding Anniversary Gift Ideas
  • English Conversation between Teacher and Student!
  • Find IP Address using JavaScript
  • JavaScript to print Floyd’s Triangle Pattern
  • Print Rectangle Pattern in Java
  • Java Program to Generate Random Names!
  • EMI Calculator – PHP Program
  • 50 English Sentences to Learn!
  • What is passive income?
  • Simple Guessing Game in PHP!

Most Viewed Posts

  • JavaScript to find Odd or Even number! (70,284)
  • C Program to reverse a string without using strrev() (52,976)
  • Calculate hours, minutes between two times in Python (37,468)
  • Restrict Special Characters in textbox – jQuery (34,820)
  • How to play movie with Subtitle on TV via USB (34,135)

Categories

  • Android
  • Apache
  • C Programming
  • C#
  • Chrome Tips
  • Classic ASP
  • CSS3
  • English Conversations
  • Facebook
  • Fast Math Trick
  • General
  • Gift Ideas
  • Gmail
  • Hindi Language
  • HTML
  • HTML5
  • Income Generation
  • Java
  • JavaScript
  • jQuery
  • JSP
  • Kannada Language
  • Learn English
  • MAC
  • Mac OS
  • Mobile Phone
  • MS SQL
  • MySQL
  • Perl
  • Photography
  • PHP
  • PostgreSQL
  • Programming
  • Python
  • Softwares
  • Spoken English through Tamil
  • Spoken Hindi
  • Tamil Language
  • Telugu Language
  • Uncategorized
  • Websites
  • Windows Application
  • Windows OS
  • Wordpress
  • XAMPP
  • Youtube

Recent Comments

  • 25 Useful Hindi Phrases through English - Part 2 - Tutorials Made on Learn 25 Useful Hindi Phrases / Sentences from this blog post
  • calcuing on PHP Percentage Calculator script
  • ciza chamwa on JavaScript to print Even Numbers within a Range!
  • Daniel janesch on Make Checkboxes act like radio buttons using jQuery
  • andreacosta on JavaScript to find Odd or Even number!
All Rights Reserved 2023.
Proudly powered by WordPress | Theme: Fairy by Candid Themes.