Mahak Pandeymahakpandeyofficial.hashnode.dev·Jun 1, 2024Best Practices for Safe JavaScript "onclick" EventsIn the world of web development, ensuring the security of user interactions is paramount. One common area where security vulnerabilities can arise is in handling onclick events in JavaScript. These events are crucial for creating interactive web appl...10 likes·35 reads- JavaScript onclick security - Secure onclick events - Prevent XSS attacks - JavaScript security best practices - Sanitize JavaScript user input - Safe JavaScript event handling - Content Security Policy for JavaScript - Preventing JavaScript vulnerabilities - JavaScript XSS mitigation - Secure web development practices
Jemin Kikanijemin.hashnode.dev·Feb 29, 2024Day 6 : what is an Math Methods And Number Methods in javascript ?The syntax for Math any methods is : Math.method(number) Math.round():- Math.round(x) returns the nearest integer. Example:- Math.round(4.6); // 5 Math.round(4.3); // 4 Math.ceil():- Math.ceil(x) returns the value of x rounded up to its nearest...math.cos()
Babatunde Akintolatundeakintola.hashnode.dev·Jan 21, 2024setTimeout and clearTimeout functionwhat are they? The setTimeout function runs a function or a piece of code after waiting for a certain amount of time in milliseconds. It has three parameters: the function to run, the time to wait, and an optional callback function to run when the ti...2 likesMethods vs Functions
Aditya Sharmaxdcoder.hashnode.dev·Dec 23, 2023JavaScript's toFixed() Method: Making Numbers Neat and TidyJavaScript 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...1 like·80 readsJavaScript MethodsJavaScript
Ekaterine (Catherine)ekaterine-mitagvaria.hashnode.dev·Sep 22, 2023Difference between functions and methods in JavaScriptWhen you start learning functions and methods in JavaScript you might use these words as if it’s the same because they might sound and look similar sometimes however functions and methods are different things. I will try to explain in a very simple w...31 readsJavaScript
Abere Oghenefejirofejiro001.hashnode.dev·Sep 16, 2023Functions vs. MethodsLet's break down the difference between a function and a method in simple terms, using everyday analogies. Function: A function is like a standalone recipe. Imagine you have a recipe for making a sandwich. It's a set of instructions that you can fo...functions
Ashok Vangablock360.hashnode.dev·Apr 20, 2023Methods vs Functions , Understanding how to use receivers in GoImagine a scenario Where we have a struct type with some fields and we want to define methods that can access and modify those fields. Defining a method & function in Go is as follows: func (receiverName ReceiverType) MethodName(parameters) (returnTy...28 readsGo HackHouseMethods vs Functions