Skip to content

MIA FTWF Vitalii Agapov#513

Closed
g1yk wants to merge 1 commit into
ironhack-labs:masterfrom
g1yk:master
Closed

MIA FTWF Vitalii Agapov#513
g1yk wants to merge 1 commit into
ironhack-labs:masterfrom
g1yk:master

Conversation

@g1yk
Copy link
Copy Markdown

@g1yk g1yk commented Oct 21, 2019

No description provided.

Comment thread index.js
let result = 0;

for (let i = 0; i < text.length; i++) {
if (text[i - 1] == ' ' && text[i] == 'e' && text[i + 1] == 't' && text[i + 2] == ' ') {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clever! To make things easier on yourself, you can use the substr() method to do essentially the same thing. More info can be found here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr

@ta-web-mia
Copy link
Copy Markdown

Nice work! If you have any questions, just let me know. Keep up the good work 👍

  • Nick

@ta-web-mia ta-web-mia closed this Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants