Welcome to my blog !

Naming style camel,snake,kebab,pascal cases tutorial example

November 26, 2022 ·  3 min read

programming Case name styles The string is a group of characters that contains word(s). A sentence is a group of strings or words In programming languages, there are different types of strings cases styles available There are various case styles for combing words to declare variables or functions or URLs in programming languages, This will be used as conventional notations only. All programming languages do not follow all cases. For example, Camel Cases in java are used for declaring variable names, kebab cases are used in lisp language for defining variable names....

Multiple ways to return multiple values from a function in javascript with examples

November 26, 2022 ·  3 min read

Javascript function returns a single value variable by definition. It contains only single return statements and types. How do functions return multiple values? You can include multiple values in either arrays or objects in javascript. There are multiple ways to return multiple values from a function in javascript and Ecmascript2015 Javascript function returns multiple values with native javascript The following function returns a single value by default. function function() { return variable } Function in java script returns multiple values using either Array or an object....

Multiple ways to get query parameters in javascript

November 26, 2022 ·  2 min read

In this tutorial, learn different ways to read query parameters in javascript. URLSearchParams using Plain javascript code query parameters are key and value pairs added to url to pass the simple parameters For example, if url is cloudhadoop.com/about?name=johh&dept=sales. query parameters are name=johh&dept=sales In javascript, these are retrieved using window.location.Search //name=johh&dept=sales location.Search // name=johh&dept=sales window and location are global javascript objects and window.location and location returns cloudhadoop.com/about How to get query parameters for the current URL In the latest browsers, we have URLSearchParams object used to get query parameters of a given URL....

Multiple ways to download a file or image in Javascript?

November 26, 2022 ·  2 min read

How to download a file or image from a given url in javascript. In Web applications, You have a feature download link that downloads the images from a given URL. You have an anchor link like below. <a href="url">Download File</a> when the user clicks on the link, it downloads a file from a server url. There are multiple ways we can do it. download file using HTML5 download file with HTML5 example if the image is present on the client side or web server, we can simply use an anchor tag with a download attribute containing the name of the file to be downloaded...

Mermaid js tutorial & example - Javascript Diagram Tool

November 26, 2022 ·  4 min read

Mermaid js tutorial Mermaid js is an Opensource javascript framework for generating diagrams and charts from Markdown-based text content. Define the markdown Text content in a syntax similar to markdown text. This project uses D3 and dagre-d3 libraries for graphic layout and drawing. For example, You define the flow as markdown as an example below graph TD; Error-->Yes; Error-->No; Yes-->Fail; No-->Success; Output It also has an online editor where you do design the diagrams and test them....

You'll get a notification every time a post gets published here.