Skip to main content

indexOf in JS (SEARCHING)


 <script>
 //find index of use
 let string1 = ["akash","kumar","gond"]
 string2    = string1.indexOf("gond");
 alert(string2);
 </script>

Comments

Popular posts from this blog

Add two string in js

To add a space between the strings stored in variables a and b when concatenating them in JavaScript, you can simply include a space character within the concatenation. Here's how you can modify your code to achieve that:

Comment in python_05

                                Comment in python  Single line comment single line comment are use to comment on one line as     #comment multiline comment multiline comment sre use to multiline comment, as '''comment'''