IndexOf() Function | Help - Zoho Deluge
Có thể bạn quan tâm
Deluge
The fastest programming language for developers
Choose where you’d like to start
indexOf()Table of Contents
- Overview
- Return Type
- Syntax
- Examples
Overview
The indexOf() function takes string and searchString as arguments. It returns the first occurrence index of searchString's first character in the string.
If the searchString is not found in the string, it returns -1.
Note:
- Index starts from 0.
- This function performs a case-sensitive search.
Return Type
- Number
Syntax
<variable> = <string>.indexOf( <searchString> );(OR)
<variable> = indexOf( <string>, <searchString>);(OR)
<variable> = <string>.find(<searchString>);(OR)
<variable> = find(<string>,<searchString>);| Parameter | Description | Data type |
|---|---|---|
| <variable> | Variable which will contain the returned index number. | NUMBER |
| <string> | The string from which the index number will be returned. | TEXT |
| <searchString> | This string's first character's first occurrence will be checked in the string. | TEXT |
Examples
text="Hello world, welcome to the universe";firstIndex = text.indexOf("e"); //returns 1Get Started Now
Execute
Từ khóa » Hàm Indexof
-
Hàm dexOf() Trong Javascript - Freetuts
-
Hàm IndexOf() Trong JavaScript | Học Lập Trình JavaScript
-
dexOf() - JavaScript - MDN - Mozilla
-
String IndexOf() Trong JavaScript - Hoclaptrinh
-
IndexOf() Trong JavaScript | Tìm Vị Trí Xuất Hiện đầu Tiên Của Một ...
-
Thao Tác Với IndexOf Trong Java - NIIT - ICT Hà Nội
-
JavaScript String IndexOf() Method - W3Schools
-
JavaScript Array IndexOf() Method - W3Schools
-
Hàm INDEX - Microsoft Support
-
Phương Thức IndexOf Trong Java String - Học Java Miễn Phí Hay Nhất
-
Indexof Function - Millisecond
-
INDEX Function - SAS Help Center
-
INDEX Function - SAS Help Center