Sudhir Kumariamsudhir.hashnode.dev·Sep 12, 2023Simplest example of Callbacks in JavaScriptFirst of all, what is Callback in JS? A callback is a function that's passed as an argument to another function and is executed once that function has completed its task. Callbacks are commonly used to handle asynchronous operations like fetching dat...Discuss·33 readsJavaScript
Haocheng Linhaochengcodedev.hashnode.dev·Aug 13, 2023[Statistics 1 🔢] Probabilities🌟Key Terms Independent $$x_i, x_j$$Two variables are independent when a joint distribution could be expressed as a product between two marginal distributions. $$P(x_i, x_j) = P(x_i)P(x_j)$$Bayes Theorem Bayes Theorem or Bayern Munich? 🤔 The probab...Discussstatistics
Maksim MartianovPromartianov.dev·Aug 12, 2023Understanding Scala Extractors: An Easy-to-Follow ExampleLet's implement a simple case class that represents a Time object that contains hours and minutes. For simplicity, we will use 24-hour clock. case class Time(hour: Hour, minutes: Minute) case class Hour(hour: Int) case class Minute(minute: Int) Now ...Discuss·29 readsexample
Sanjana Khansanjana940904.hashnode.dev·Jul 9, 2023Exploring SPLPriorityQueue Class Methods in PHPSplPriorityQueue::count The SplPriorityQueue::count method in PHP returns the number of elements present in the priority queue. It does not take any arguments and always returns an integer value. Here's an example that demonstrates the usage of SplPr...Discuss·28 readsPHP
Uva Prasaathuva.hashnode.dev·Jul 4, 2023what is Polyfill ?A polyfill is a piece of code that provides modern functionality on older browsers or environments that lack support for certain features or APIs. It essentially "fills in" the gaps by emulating or replicating the behavior of the missing features. Wh...Discuss·3 likes·121 readsJavaScript
Jorge Leonardo Cespedes Tapiajorgecespedes.hashnode.dev·Jul 1, 2023Desarrollo Backend con PythonEjemplo sencillo de creación de una API El desarrollo backend es una parte fundamental de la construcción de aplicaciones web, y Python es un lenguaje de programación ampliamente utilizado para esta tarea. En este artículo, exploraremos cómo desarrol...Discussbackend
Vaishnav Srivastavavaishnavsrivastavablog.hashnode.dev·Jun 4, 2023FunctionFunction definition, example, advantage and disadvantages Learning DSA Introduction to Functions -Functions are an essential idea in programming and arithmetic. -encapsulate a fixed of commands or operations that may be carried out repeatedly with ex...DiscussDefinition of funtion
Harsha Bayyaram harshabayyaram.hashnode.dev·Jun 4, 2023Git: A solo time travel 🧍♀️🕢🚀; GitHub: Time Travel in a Collaborative way 🧑🤝🧑🕢🚀Greetings, readers! Today, we are gonna deep dive into the world of Git and GitHub using our childhood love Doraemon as our example. First, we gonna discuss theoretically with an example then jump into the core commands part. In the world of Doraemon...NITESH KUMAR OJHA and 1 other are discussing this2 people are discussing thisDiscuss·24 likes·124 readsGitHubNice explanation. very well used the basic example 17
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Mar 22, 2023Go: Define VariablesIn Go we can declare variables using the keyword var. The variables can be visible in global scope or local. Global variables are defined at the package level. Local variables can be defined in functions. Example: package main import "fmt" // globa...Discuss·10 likes·35 readsGo Languagegolang
Mikaeel Khalidblog.mikaeels.com·Feb 28, 2023Creating Custom JavaScript Functions: Best Practices and ExamplesJavaScript functions are an essential part of any web development project. They allow developers to encapsulate blocks of code and reuse them throughout their codebase. Creating custom JavaScript functions can make your code more efficient, readable,...Discuss·60 readsDevJavaScript