---
title: "#methods-vs-functions articles | Hashnode"
description: "Explore 7 articles tagged #methods-vs-functions on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/methods-vs-functions"
---

Tag

# #methods-vs-functions

7 posts · 2 followers

[Mahak Pandey](https://hashnode.com/@mahakPandeyOfficial) · [Jun 1, 2024](https://hashnode.com/posts/best-practices-for-safe-javascript-onclick-events/665ba24835b683054766f132)

### [Best Practices for Safe JavaScript "onclick" Events](https://mahakpandey.dev/best-practices-for-safe-javascript-onclick-events?utm_source=hashnode&utm_medium=feed)

Best practices to secure JavaScript \`onclick\` events and prevent XSS attacks. Learn how to sanitize input, use CSP, and leverage frameworks

3 min read · [mahakpandey.dev](https://mahakpandey.dev/best-practices-for-safe-javascript-onclick-events?utm_source=hashnode&utm_medium=feed)

[Jemin Kikani](https://hashnode.com/@KikaniJemin) · [Feb 29, 2024](https://hashnode.com/posts/day-6-what-is-an-math-methods-and-number-methods-in-javascript/65e086e4b1c39ee7bfb7bafb)

### [Day 6 : what is an Math Methods And Number Methods in javascript ?](https://jemin.hashnode.dev/day-6-what-is-an-math-methods-and-number-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

“Every master was once a disaster.”

3 min read · [jemin.hashnode.dev](https://jemin.hashnode.dev/day-6-what-is-an-math-methods-and-number-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

[Babatunde Akintola](https://hashnode.com/@TundeAkintola) · [Jan 21, 2024](https://hashnode.com/posts/settimeout-and-cleartimeout-function/65ad0857977400deea1f7465)

### [setTimeout and clearTimeout function](https://tundeakintola.hashnode.dev/settimeout-and-cleartimeout-function?utm_source=hashnode&utm_medium=feed)

Timing of Functions

1 min read · [tundeakintola.hashnode.dev](https://tundeakintola.hashnode.dev/settimeout-and-cleartimeout-function?utm_source=hashnode&utm_medium=feed)

[Aditya Sharma](https://hashnode.com/@xdcoder) · [Dec 23, 2023](https://hashnode.com/posts/javascripts-tofixed-method-making-numbers-neat-and-tidy/6586b3cea781b03a51098fc4)

### [JavaScript's toFixed() Method: Making Numbers Neat and Tidy](https://xdcoder.hashnode.dev/javascripts-tofixed-method-making-numbers-neat-and-tidy?utm_source=hashnode&utm_medium=feed)

JavaScript is a versatile programming language that empowers developers to create dynamic and interactive web applications. Among its many features, the Number.toFixed() method stands out as a valuable tool for working with numerical data. In this ar...

2 min read · [xdcoder.hashnode.dev](https://xdcoder.hashnode.dev/javascripts-tofixed-method-making-numbers-neat-and-tidy?utm_source=hashnode&utm_medium=feed)

[Abere Oghenefejiro](https://hashnode.com/@Fejiro001) · [Sep 16, 2023](https://hashnode.com/posts/functions-vs-methods/650611a1ca70366e0deb0287)

### [Functions vs. Methods](https://fejiro.dev/functions-vs-methods?utm_source=hashnode&utm_medium=feed)

What is the difference between a function and a method

2 min read · [fejiro.dev](https://fejiro.dev/functions-vs-methods?utm_source=hashnode&utm_medium=feed)

[Ashok Vanga](https://hashnode.com/@askrv) · [Apr 20, 2023](https://hashnode.com/posts/methods-vs-functions-understanding-how-to-use-receivers-in-go/64411565546b12584f7d1bfc)

### [Methods vs Functions , Understanding how to use receivers in Go](https://block360.hashnode.dev/methods-vs-functions-understanding-how-to-use-receivers-in-go?utm_source=hashnode&utm_medium=feed)

Methods vs Functions

3 min read · [block360.hashnode.dev](https://block360.hashnode.dev/methods-vs-functions-understanding-how-to-use-receivers-in-go?utm_source=hashnode&utm_medium=feed)
