JavaScript's string search method accepts a single argument: a pattern to search for in the string it is invoked on. The search method is similar to the indexOf and lastIndexOf methods in that it returns the location of the first found match, or -1 if it is not found. Strings are concatenated.

3m read timeFrom medium.com
Post cover image
Table of contents
JavaScript for Beginners — Part 2JavaScript Search Methods:JavaScript Numbers:JavaScript Integers:JavaScript Floating-point Numbers:Adding Numbers and StringsNumber() Function in JavaScript
2 Comments

Sort: