content icon indicating copy to clipboard operation
content copied to clipboard

Standardize examples in `URLSearchParams: delete()`

Open Johngeorgesample opened this issue 1 year ago • 1 comments

Description

Replaces LiveSample with console.log in the examples for URLSearchParams: delete()

Motivation

I blindly copy-pasted the first example into my terminal and was surprised when I got back Uncaught ReferenceError: log is not defined. It wasn't until after I checked the source of the page that I realized it was utilizing a custom log function that didn't lend itself to copy/pasting outside of the LiveSample.

The rest of the URLSearchParams method examples use console.log, so I think it makes sense to do the same thing here. Look at forEach as an example.

Johngeorgesample avatar Jun 28 '24 16:06 Johngeorgesample

Preview URLs

(comment last updated: 2024-07-01 03:05:06)

github-actions[bot] avatar Jun 28 '24 16:06 github-actions[bot]

John-George, Nice work, and congrats on landing your first docs change here — welcome aboard 🎉

sideshowbarker avatar Jul 01 '24 03:07 sideshowbarker