This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.
1 2 3 |
var str = 'testing'; var substr = 'tin'; alert(str.indexOf(substr) !== -1); |
The above
This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.
1 2 3 |
var str = 'testing'; var substr = 'tin'; alert(str.indexOf(substr) !== -1); |
The above
Hello students and dear programmers. Today’s script we are going to see how to generate a multiplication table using PHP script.
1 2 3 4 5 6 7 8 9 10 |
<?php $table_no = 7; $upto = 10; for($i=1; $i<=$upto; ++$i){ echo "$table_no * $i = ".$table_no * $i ."<br />"; } ?> |
The above script
In this post I am writing a simple jQuery script to validate password and confirm password which usually requires in a registration page. So what
Here is another simple jQuery snippet which tells which key is pressed. It’s so simple to find out which key is pressed using jQuery event.
In this post we are going to see a very basic PHP script which might be useful for beginners who wants to learn PHP language.
In this tutorial we are going to see how to separate positive & negative values from an array in PHP language. The logic is very
These kind of question are asked many time in Interviews to confuse the candidates. It’s actually much easier than using loops. So how to find
Here is another interesting Python program that will take a word or sentence as an input (basically a string) and return the number of vowels
In this post we are going to see how to write a PHP script to strip vowels from string. This post could be useful for