---
title: "Discussion on \"How to write JavaScript indexOf and lastIndexOf array methods from scratch\" | Hashnode"
description: "Discussion on \"How to write JavaScript indexOf and lastIndexOf array methods from scratch\". Basic implementation of indexOf & lastIndexOf methods from scratch."
url: "https://hashnode.com/posts/how-to-write-javascript-indexof-and-lastindexof-array-methods-from-scratch/657070ddf293594eb69ff543"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to write JavaScript indexOf and lastIndexOf array methods from scratch](https://blog.devbitbyte.com/how-to-write-javascript-indexof-and-lastindexof-array-methods-from-scratch?utm_source=hashnode&utm_medium=feed)

Basic implementation of indexOf & lastIndexOf methods from scratch.

Dec 6, 2023 · 1 min read · blog.devbitbyte.com  
Updated Dec 9, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#indexof](https://hashnode.com/tag/indexof)
-   [#lastindexof](https://hashnode.com/tag/lastindexof)
-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[DevBitByte](https://hashnode.com/@devbitbyte)

@devbitbyte

  
[View profile](https://hashnode.com/@devbitbyte)

Learning in chunks.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
