4/1/2023 0 Comments Javascript search in array![]() ![]() Here one thing is notable is if we get a very first wrong match from that point further execution will be terminate and the result will be returned with a false value. while in case of the second result it’ll compare every record with 0th index record (5) where it’s equal to all record so the output is given as true. ![]() Const result = allEqual() // output: trueĪs the first result shows, on 0th index record (3) won’t match to the first index record and it’ll return false from then only. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |