---
title: "Discussion on \"Explain split(\"\") , split(\" \") and split(\"   \") method  in javascript\" | Hashnode"
description: "Discussion on \"Explain split(\"\") , split(\" \") and split(\"   \") method  in javascript\". The split() method in JavaScript is used to split a string into an array of substrings based on a specified separator. Let me explain the three cases you mentioned:\n\nsplit(\"\"):\n\nWhen you use an empty string \"\" as the separator, it means that you want..."
url: "https://hashnode.com/posts/explain-split-split-and-split-method-in-javascript/653a7b41cee70841df000d3b"
---

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

Discussion

# [Explain split("") , split(" ") and split(" ") method in javascript](https://freeyoursmind.hashnode.dev/explain-split-split-and-split-method-in-javascript?utm_source=hashnode&utm_medium=feed)

The split() method in JavaScript is used to split a string into an array of substrings based on a specified separator. Let me explain the three cases you mentioned: split(""): When you use an empty string "" as the separator, it means that you want...

Oct 26, 2023 · 2 min read · freeyoursmind.hashnode.dev  
Read the article

-   [#split](https://hashnode.com/tag/split)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-interview-question](https://hashnode.com/tag/javascript-interview-question)

## Written by

[Sumit Singh](https://hashnode.com/@matrixneo)

@matrixneo · Jaipur, India

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

Free Your Mind....

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
