---
title: "Discussion on \"String Polyfills and Common Interview Methods in JavaScript\" | Hashnode"
description: "Discussion on \"String Polyfills and Common Interview Methods in JavaScript\". There's a question that shows up in JavaScript interviews more often than you'd expect:\n\"Can you implement String.prototype.trim() yourself?\"\nIt sounds simple. You've used trim() a hundred times. But"
url: "https://hashnode.com/posts/string-polyfills-and-common-interview-methods-in-javascript/6a00b104e3eebc2e209fda7e"
---

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

Discussion

# [String Polyfills and Common Interview Methods in JavaScript](https://kushagrablogs.hashnode.dev/string-polyfills-and-common-interview-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

There's a question that shows up in JavaScript interviews more often than you'd expect: "Can you implement String.prototype.trim() yourself?" It sounds simple. You've used trim() a hundred times. But

May 10 · 9 min read · kushagrablogs.hashnode.dev  
Read the article

-   [#string-methods](https://hashnode.com/tag/string-methods)
-   [#strings-and-methods](https://hashnode.com/tag/strings-and-methods)
-   [#polyfills](https://hashnode.com/tag/polyfills)

## Written by

[Kushagra Trivedi](https://hashnode.com/@kushagratrvd)

@kushagratrvd

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
