+ 1

How I got answer as 7 in below given code

https://code.sololearn.com/cbq02aDa8A34/?ref=app

doubt
10th Mar 2022, 1:25 AM
SILENCEOID
SILENCEOID - avatar
2 Answers
+ 1
You are starting your search at index 4 therefore the first occurance of 'e' is at index 7. Index start at 0
10th Mar 2022, 1:31 AM
William Owens
William Owens - avatar
+ 1
Thanks FF9900 and William Owens
10th Mar 2022, 1:51 AM
SILENCEOID
SILENCEOID - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
How i print not duplicate data
1 Votes
It keeps throwing errors, I can't seem to understand the problem.
2 Votes
how do i ask multiple questions in python?
3 Votes
Where did my question go from the discussion?
2 Votes
I need help with this code about template literal on JavaScript.
0 Votes
Several entries in the same variable
0 Votes
Can you please tell me which is the best software to use and to code ( on software ) and it is beginner friendly
0 Votes
How to animate both Box and Sphere?
1 Votes
Idea for sololearn
1 Votes
new course
0 Votes
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn Mobile
Made with
by  Sololearn | ©2023