\n metacharacter finds a position (index value) of first occurrence of newline character.
|Number||Returns the position where the newline character was found.|
|-1||If no newline character is found.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.