Nipun Shiharanipunshihara.hashnode.dev·Jun 21, 2023Java Code Examples Part 1Example 1: How to swap the values of two variables without using a temporary variable in Java? To swap the values of two variables without using a temporary variable in Java, you can utilize the XOR (^) operator. Here's an example code snippet: int a...107 readsJavaJava
Smart Shocksmartshock.hashnode.dev·Apr 5, 2023Understanding Render Props in React | Simple Example with CodeIn React, "Render Props" is a design pattern that allows a component to pass a function as a prop to its child components. This function can then be used by the child components to render their content, making it a versatile and reusable method of sh...30 reads25 React Exercises for Practical LearningReact
{{ MonaCodeLisa }}blog.monacodelisa.com·Feb 19, 2023Algorithms in JavaScript & TypeScript - Simple & Code ExamplesIn this blog post, we will explore some of the most common algorithms used in Javascript and Typescript, and how they can be used to optimize your code and build more effective web applications. Algorithms Algorithms are fundamental to computer scien...2 likes·324 readsTypeScript / JavaScriptJavaScript
{{ MonaCodeLisa }}blog.monacodelisa.com·Feb 19, 2023Data Structures in JavaScript and TypeScript - Simple & Code ExamplesIn this blog post, I will delve into the world of data structures and explore some of the most commonly used data structures in JavaScript and TypeScript. Data Structures Data structures are essential components of any computer program, and they play...1 like·661 readsTypeScript / JavaScriptTypeScript
{{ MonaCodeLisa }}blog.monacodelisa.com·Jun 27, 2022This keyword with Arrow Functions => Simple & Code ExamplesWhen using traditional function syntax, the value of "this" inside the function is determined by how the function is called, such as through an object method invocation or as a standalone function. However, when using arrow functions, the value of "t...TypeScript / JavaScriptJavaScript
{{ MonaCodeLisa }}blog.monacodelisa.com·Jun 19, 2022What is 'THIS' keyword in JavaScript and TypeScript - Simple & Code ExamplesYou may have heard or read that - this keyword in JavaScript and or/ TypeScript is very confusing and it can be challenging to understand in different contexts. In my opinion, there's nothing special about the "THIS" keyword, and it's not as complica...TypeScript / JavaScriptJavaScript
{{ MonaCodeLisa }}blog.monacodelisa.com·May 23, 2021Loops in JavaScript and TypeScript - Simple & Code ExamplesLoops are a fundamental concept in programming that allow developers to execute a block of code repeatedly. JavaScript and TypeScript provide several types of loops that can be used to achieve this functionality. In this article, we will explore the ...27 readsTypeScript / JavaScriptJavaScript
{{ MonaCodeLisa }}blog.monacodelisa.com·Sep 11, 2022Promises in JavaScript and TypeScript - Simple & Code ExampleWhat are Promises? Promises are a way of handling asynchronous code in JavaScript. They provide a way to represent the eventual completion (or failure) of an asynchronous operation and allow us to write code that is easier to read and reason about. A...TypeScript / JavaScriptJavaScript
{{ MonaCodeLisa }}blog.monacodelisa.com·Sep 23, 2022Async / Await in JavaScript and TypeScript - Simple & Code ExampleAsynchronous programming is an important concept in modern web development. JavaScript, as one of the most popular programming languages, has evolved to support asynchronous programming with the introduction of the async/await syntax. What is async/a...35 readsTypeScript / JavaScriptJavaScript
{{ MonaCodeLisa }}blog.monacodelisa.com·May 31, 2022Type Annotations in TypeScript - Simple & Code ExamplesIn TypeScript, type annotations are used to specify the data type of a variable, function return type, or function parameter type. They provide the TypeScript compiler with information about the type of data a variable can store, which can help catch...TypeScript / JavaScriptTypeScript