---
title: "Discussion on \"JS Slice, Substring, Substr\" | Hashnode"
description: "Discussion on \"JS Slice, Substring, Substr\". All these methods are used to extract part of given string.\nDeclarations:\n\nslice(start, end); - slice from start (including) to end (excluding) and accepts negative values.\nsubstring(start, end); - same like slice but won't accepts negative values.\ns..."
url: "https://hashnode.com/posts/js-slice-substring-substr/61ebeae95fbc177f9f3b442c"
---

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

Discussion

# [JS Slice, Substring, Substr](https://vkglobal.hashnode.dev/js-slice-substring-substr?utm_source=hashnode&utm_medium=feed)

All these methods are used to extract part of given string. Declarations: slice(start, end); - slice from start (including) to end (excluding) and accepts negative values. substring(start, end); - same like slice but won't accepts negative values. s...

Jan 22, 2022 · 1 min read · vkglobal.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Mahesh](https://hashnode.com/@urstrulyvishwak)

@urstrulyvishwak · India

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

Dad | Web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
