Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

using .indexOf() in jShell

>  "Hello world".indexOf('e');
java.lang.Integer res = 1

> "Hello world".indexOf('7');
java.lang.Integer res = -1
Source by moringaschool.instructure.com #
 
PREVIOUS NEXT
Tagged: #jShell
ADD COMMENT
Topic
Name
8+9 =