---
title: "Discussion on \"JavaScript  some and every method\" | Hashnode"
description: "Discussion on \"JavaScript  some and every method\". Both some and every method is used to test whether or not elements are present in the array. \nIn this article, we are going to look at the differences between some and every method\nsome()\n  const words = [\"cat\",\"be\",\"danger\", \"dog\",\"log\",\"bag\",\"wag\"]..."
url: "https://hashnode.com/posts/javascript-some-and-every-method/5fcf8673d639be20b2f02a80"
---

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

Discussion

# [JavaScript some and every method](https://maniteja19.hashnode.dev/javascript-some-and-every-method?utm_source=hashnode&utm_medium=feed)

Both some and every method is used to test whether or not elements are present in the array. In this article, we are going to look at the differences between some and every method some() const words = \["cat","be","danger", "dog","log","bag","wag"\]...

Dec 8, 2020 · 2 min read · maniteja19.hashnode.dev  
Updated Apr 7, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#array](https://hashnode.com/tag/array)
-   [#arrays](https://hashnode.com/tag/arrays)

## Written by

[Srimaniteja Chinnam](https://hashnode.com/@Maniteja)

@Maniteja · Chennai,India

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

Front-end developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
