Jump to content

using one line of code for indexOf()


webmanz

Recommended Posts

Chapter 5 lesson 5

5.37 minute mark of video

alert("Alert: " + "stef@studioweb.com" . indexOf("@")

For the above to work do I still need to type in code mentioning console log? In other words just that one line of code without any mention of console log or anything else?

By anything else I mean:

var email

var theAt

console.log

In the video the js position shows up in console log using that one line of code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...