All Articles

  1. Line continuation | Long statement in Multiple lines in Python

    Find out how to write long strings that continue to the next line using python. And to solve line continuation in python.

  2. Find Length of Dictionary in Python with Examples

    To find the length of the dictionary we have to use the `len()` function in python.

  3. Reverse an Array in Python (Using Numpy And Array Module)

    We have to create an array in Python using numpy and array module and use reverse() and slicing method to reverse it.

  4. Python import from parent directory

    We can import methods from a parent directory in python using the sys.path.append() and sys.path.insert() method of the sys and os modules.

  5. How to use Pi in Python? (math and numpy module)

    We can use Pi using the math module in python. The math.pi returns the value of 3.141592653589793 when used in Python.

  6. FileNotFoundError: No such file or directory Error Python

    Find out how to solve the no such file and directory error by specifying the absolute and relative path of the file in python.

  7. Save Python dict as JSON: Convert Dictionary to JSON

    Find out how to convert dictionary to JSON format using python. In python, we can use the json.dumps() method to covert the dict to json object.

  8. Add leading zero to a number in JavaScript (Code Example)

    To add leading zero to a number, first convert the number to a string and use padStart() method to add the leading zero.

  9. Find square root of negative number using python

    We can get the square root of a negative number in python using the cmath python library.

  10. Square a number in Python (3 ways)

    Find out how to find the square of a number in python. Python programs to find the square number of list and arrays using python.

  11. Convert a string to Array (List) in Python(3 ways)

    Find out three different ways to convert a string into an array (list) in python.

  12. Add Multiple Classes to HTML elements using JavaScript

    Find out how to add and remove multiple classes to and from an HTML element using JavaScript's classList.add() and classList.remove() method.

  13. Change text of HTML page Element using JavaScript

    In this article, we will learn how to change text in HTML page using JavaScript.

  14. Javascript - Convert array to String (with and without commas)

    Short article to convert array to string with commas and without commas using join method.

  15. (Fixed) npm ERR! missing script: start error

    This article is about how to fix npm err! missing script start error in nodejs application.

  16. Javascript nullish coalescing (double question mark) operator

    Short guide explaining about the nullish coalescing (double question mark) operator in Javascript.

  17. (FIXED) NVM Error - exit status 1: Access is denied

    Short article on how to solve NVM Error - exit status 1: Access is denied in windows 10.

  18. How to flatten nested list in python (5 ways)

    A python list can be 2D list or multi-dimensional list. Find out different ways to flatten a list of list (nested list) in python.

  19. Prepend List in Python (Append at the beginning)

    Find out different ways to prepend list in python. Ways to add items at the beginning of the list in python.

  20. Create Directory if not Exists in Python

    Find out how to create a directory if the targeted directory does not exist in python.

  21. Sort List or Dictionary by two keys in Python

    Learn to sort list, dictionary, tuples with multiple elements in python. Here, we have sort python list and dictionary by two keys.

  22. How to reverse a range in python | Reverse Range

    Find out different ways to reverse a range in python using reversed function, negative step and sorted function.

  23. Python string append | How to Append String in Python

    Find out different ways to append one string to another in Python using += operator, join function or the f-string method.

  24. (Solution) ValueError: math domain error in Python

    Find out how to solve math domain error while using sqrt, acos, and log of a number in python. Also find the solution of this math error.

  25. Python Bitwise XOR Operator and its Uses

    The XOR operator or binary operator is use to perform bitwise calculations on integers and boolean values in python.

  26. Python - Remove Newline From Strings (3 Ways)

    We can remove new line from a string using replace(), strip() and re.sub() method in python.

  27. Python | Delete an Element (key) From a Python Dictionary

    Find out different ways to remove keys from a dictionary and also to remove multiple keys from a python dictionary.

  28. Check for prime number using for and while loop in Python

    Write python programs to find prime numbers using for loop and while loop and also within a given range between 1 to 100.

  29. Merge two dictionaries together using python (3 ways)

    Find out 3 different ways to merge or combime two or more dictionaries in python.

  30. Merge multiple JSON objects into one single object in Python

    Combine multiple JSON objects from a file into a single object and then save it in a file in python.

  31. Python - Check if list is empty or not

    Learn about different methods to check if a list is empty or not in python.

  32. What is memoization and how to cache function results in Javascript

    Javascript memoization is an optimizing technique to reduce time consuming calculations. It's a type of caching which store previous results in the memory.

  33. Python - Insert an element at specific index in a list

    Find out ways to insert an element at a specific index in a Python list using insert method, append and extend methods.

  34. Python-Check if user input is a number

    Find out if the user input is a number or string using isnumeric and isdigit methods in Python program.

  35. Check if user input is empty in python

    Find out how to check if the user input is empty in python using if and while statement and not operator.

  36. How to take input as int (integer) in python?

    Find out how to take integer input in python using int() function with exception handling for errors.

  37. Remove the Last N element from a List in Python

    Find out how to remove the last N element from a Python list using pop(), list slicing and del function.

  38. Convert HTMLCollection into array in JavaScript

    Post on how to convert HTMLCollection to an array to apply forEach() method on its element to loop in JavaScript.

  39. Remove Duplicates from List in Python

    Find out how to remove duplicate items from a list in python using different method and create a unique list.

  40. Python - Check if a string is Empty or Not

    To find if a string is empty of not in python, we can use len(), not operator ,and strip() or isspace() method to check for non-zero length string.

  41. Get the Index or Position of Item in List in Python

    In this post, we will discuss how to find the index of an element from a List in python with some examples.

  42. Replace character in String by index in Python

    Short article on how to replace a character in a string using the index with the help of python code.

  43. Clear cache in Yarn: yarn cache clean

    Find out how to clear cache in yarn using the yarn cache clean command. It deletes all the data of the cached node packages from your local storage.

  44. How to replace characters in a string in Python

    Find out how to find and replace characters in a string in Python using Python.replace() method.

  45. Split string by whitespace in python

    Find out how to split a string by whitespace using split() method in python. The split method split a string and returns a list.

  46. How to split a list into multiple list using python

    To split a list we have to find the len of the list and then divide it by 2 to find the middle index. It helps to split list by chunks size.

  47. Split String and get the first element using python

    Find out how to split a string and get the first element from the list using maxsplit argument in python.

  48. Get the current year, month and day in Python

    Find out how to get the current year, month, and day in python. To get the current day or year we use the date class from the datetime module.

  49. Convert a string into integer or float using Python

    Find out how to convert a string into an integer or floating point number using int() and float() function in Python.

  50. Get the name of the month from a date in Javascript

    Find out how to get the name of the month from a date object using JavaScript. Get the name of the month using date's toLocaleString method method.

  51. [Solved] date.getDate() is not a function error in JavaScript

    Find out how to solve the date object error, TypeError: date.getDate() is not a function in JavaScript.

  52. Check if a timestamp/date is today in JavaScript

    Find out how to check if input date is equal to today's date using JavaScript. Convert the timestamp or date to valid date object and compare it to current day.

  53. Convert and Save HTML elements as Image using JavaScript

    Find out how to convert a div to image without using canvas in JavaScript. Here we will save an HTML element as image using html2canvas package.

  54. Create Scroll to Top button using JavaScript

    Find out how to create scroll to top button to scroll to the top of the page using vanilla javascript with the help of window.scroll funcltion.

  55. Check if String starts with a space in JavaScript

    Find out whether a string starts with a space or not using regex test method, string match method and startsWith method in JavaScript.

  56. JavaScript - Detect if a string contains any space

    FInd out how to detect if a string contains any white space using regex test() method and string indexOf() method in Javascript.

  57. 5 ways to flatten nested array in JavaScript

    Short tutorial on five different ways on how to convert nested array into flat array (single array) in JavaScript.

  58. How to Clone/Copy a Object in JavaScript

    Find out how to clone/copy in Javascript. Understand what is shallow copy and deep clone a JavaScript object.

  59. Get the current directory/folder in Node Js

    Find out how to get the current folder or directory path where a Javascript code is executed in Node.

  60. Delete a file in Node using unlink() and unlinkSync() method

    Short tutorial on how to remove a file from the file system in node js using unlink() and unlinkSync() functions.

  61. Add property to each object in an array of object in JavaScript

    Short article on how to add property to each object in an array of objects using JavaScript.

  62. Change Element Class using JavaScript

    Short article on how to change the class name from an element using JavaScript classList.add() and classList.remove() method.

  63. JavaScript - Get Month Name from Date

    Find out how to get the name of the month from JavaScript Date object using toLocaleString method andd Intl.DateTimeFormat object.

  64. Easy Way to use localStorage with Vue

    Short article on how to use local storage with Vue and learn saving and storing data in local storage with the setItem() and getItem() methods.

  65. How to split First name and Last name in JavaScript

    Short article to separate first name and last name in a form field using split method in JavaScript.

  66. Change image source (src) on hover using CSS

    Find out how to change the source of the image tag on hover using CSS using :hover selector.

  67. How to change image on hover JavaScript

    Short article on how to change the source of the image <img> tag on hover using JavaScript.

  68. Change image src using onClick event in JavaScript

    Find out how to change or replace the image src (source) on click of a button using onClick() event in JavaScript.

  69. [Fixed] GitHub "fatal: remote origin already exists" error

    Find out to fix "fatal: remote origin already exits" github error while working with remote git repository.

  70. Force update Vue to Reload/Rerender component

    Short tutorial on how to correctly force update Vue.js component to reload or rerender. The component is reinitialized without having to do a browser refresh.

  71. Solved "No such remote origin" Git Error Fatal

    Short article on how do I fix remote origin already exists git error faced when trying to push to remote origin in Github and BitBucket.

  72. How to change URL of Git remote origin

    Short tutorial on how to change the URL of remote Git Repository using git remote set-url command.

  73. Set and get cookies in a browser in Vue App

    Find out how to set and get cookies in a browser for your webpage in Vue using vue-cookies package.

  74. Save vuex state after page refresh in Vue App

    Short tutorial on how to save (or persist) data in a vue application using Vuex and vuex-persist npm package.

  75. How to convert markdown to PDF offline with Pandoc Converter

    Find out how to convert or merge two or more markdown files into a pdf format in windows and MacOs using command line in Pandoc document converter.

  76. How to add common header and footer in Nuxt

    Short post on how to add common header and footer component for all your pages in your nuxt application using layouts directory.

  77. Add style to v-html with scoped css in Vue

    Find out how to use deep selectors to add style in v-html with scoped css in sass and regular css in Vue.

  78. Use emoji as list bullet points using CSS list-style

    Find out two different ways to use emoji as bullet point using list-style in CSS with the help of :before pseudo-element and @counter-style CSS at rule.

  79. Convert Kilometers to Miles using JavaScript program

    Find out how to write a JavaScript function that takes a number and converts kilometers to miles i.e km to mi.

  80. Split a String into chunks of N character into an array in JavaScript

    Find out how to split String into Substrings by length of N characters in JavaScript using split(), match() and substr() methods.

  81. How to split string after specific character in JavaScript

    Find out how to split the string at specific character in your string using split() method in JavaScript.

  82. How to add 404 page in Vue using vue-router

    Find out how to add a custom 404 (Page Not Found ) Error page in Vue using vue-router.

  83. How to redirect to another page in Vue

    Find out how to redirect URL to another page routes using redirect property in vue-router in Vue Js.

  84. How to conditionally bind class in Svelte

    Tutorial on how to conditionally bind dynamic classes in Svelte JS using curly braces.

  85. How to register a Global component in Vue 3 and Vue 2

    Short article on how to register a component globally in Vue 2 and 3 to be used in any component without importing in every component.

  86. Create multiline string in JavaScript | Split string to Multilines

    Find out how to create multiline string in JavaScript using string concatenation, blackslash and template literals.

  87. Easy Way to add Emoji in markdown with VS Code

    Find out how to add emoji in your markdown document in VS Code using markdown emoji or emojisense plugins.

  88. How to open markdown link in new tab

    Article on how to open a markdown link in a new tab in browser using target="_blank" in the ahref link.

  89. How to change image size in markdown in GitHub

    Find out different ways on how to change or resize image size in markdown for GitHub profile.

  90. How to remove an item from array in Vue component

    Find out how to remove an item/element or an object from an array in Vue using splice() and filter() method.

  91. Github checkbox - Create checkbox inside markdown table in github

    Short article on how to create checkbox or tick and cross mark inside markdown table in Github using emoji.

  92. Fix - Cannot use import statement outside module Error in Node

    This article about how to resolve cannot use import statement outside a module error in plain JavaScript and node.

  93. How to clean cache in npm? npm clear cache

    In this tutorial we will learn how to clean or remove npm cache from Windows, linux and Mac using npm cache clean command.

  94. How to write comments in a Markdown File

    Find out the different ways to add comment in a markdown file, so that it wont show up in HTML output of your web page..

  95. How to strikethrough a word in markdown

    Find out how to strikethrough a word in markdown using double tilde, <s> tag of html and even the <del> HTML tag.

  96. How to underline a text in markdown

    Find out how to underline a text in markdown using the <u> tag in HTML.

  97. How to do text highlight in markdown

    Short article on how to do text highlighting in markdown using <mark> tags or double equal sign in our editor.

  98. How to use setTimeout with Vue | Equivalent of setTimeout() function.

    Find out how to use setTimeout() function in Vue js application.

  99. Only show slot if it has content with Vue.js

    Find out how we can only show slot if it has content in it using $slot property in Vue Js.

  100. How to center align an image in markdown

    Short article on how to center align an image or text in markdown language using align attribute of html.

  101. How to convert markdown files to PDF in VSCode

    Find out how to convert your markdown files and export it as pdf using Markdown PDF plugin in VSCode.

  102. How to make horizontal line in markdown

    Short article on how to make horizontal line in markdown using the hyphens, asterisks, or underscores on a line.

  103. How to write superscript and subscript in markdown

    Find out how we can write superscript and subscript in markdown using html <sup> tag and <sub> tag.

  104. Call a Vue Method on page load in Vue JS

    Short article on how to call a method/function on page load in Vue JS to fetch data or to initialized something using created and mounted hook.

  105. How to remove node_modules from github or bitbucket

    Step by step process to remove node_modules from github or bitbucket after the folder is added to the repository with the help of gitignore file.

  106. How to create a horizontal list using HTML and CSS

    Find out different ways to create horizontal list using inline-block and flex-box in CSS for your navigation bar on your website.

  107. How to change the color of <hr> tag using CSS

    Here we will learn how to change the color or the background color of HR element in out html using css style.

  108. How to display JavaScript variable value in HTML

    Short tutorial on how to display JavaScript variable values in HTML using three ways , using innerHTML, document.write() and window.alert().

  109. Get value from input using on change in Vue

    Short tutorial to get the value from an input field to trigger an event/function on change using @input event handler in Vue.

  110. How to get data from the child component in Vue

    Find out how to get or access the data from the child component using the $ref directory in Vue.

  111. How to allow input type=file accept only images

    Find how to allow input field type=file accept only a particular type of file, here only images from users.

  112. Add CSS style to input type=file | Custom file input

    Short tutorial to add css styles to input type=file field on a website using : :file-selector-button pseudo selector for **Webkit/Blink** browsers.

  113. How to find the size of the file in Node JS

    Short tutorial on how to find file size of any file like image or text document in node js using the file system module.

  114. How to pass data from parent component to child using props in Vue

    Find out how to send data from parent component to child component using props in Vue.

  115. Execute a function from child component in Vue

    Find out how we can execute a function in the parent component from the child component using emit function in Vue.

  116. Find the average of n numbers using JavaScript

    Tutorial to write a JavaScript function to find the average of n numbers of items in an Array using JavaScript.

  117. How to find the median value of an array using JavaScript

    Short tutorial on how to find median of odd and even numbers of values in an array using JavaScript.

  118. How to pass data from child to parent component in Vue JS

    Find out how we can pass data from a child component to a parent component using the built-in $emit function with custom event in vuejs .

  119. JavaScript - Show and hide div on button click using JavaScript

    This post is about how to show and hide a div on button click using JavaScript. We will change the CSS property of the element using JavaScript to hide and show the content.

  120. How to read text file in JavaScript (line by line)

    This article is about how to read text file in JavaScript line-by-line from local computer using Html input field.

  121. Enable or Disable button programmatically using JavaScript

    This article is on how to programmatically enable or disable button using JavaScript.

  122. Detect Dark Mode | Color Mode Change using JavaScript and CSS

    Find out how to detect dark mode and detect mode change using JavaScript and CSS in modern browsers like chrome, edge, firefox.

  123. Check if a HTML checkbox is checked using JavaScript

    Find out how to check if the checkbox is checked or not using JavaScript.

  124. Change Text Color Using JavaScript with Example

    This post is about how to change color of text in HTML using JavaScript with and without clicking a button.

  125. JavaScript: Change Background Color of a Webpage.

    Find out how to change the background color of the body tag or a div in a web page using JavaScript.

  126. How to align content of a div to the buttom

    Find out how to align content of a div to the buttom using positioning and flex box.

  127. How to add CSS border inside a div element

    Find out how to add a border inside a div element using CSS box-sizing, outline property and box-shadow inset property.

  128. How to bind text, html and attributes in Svelte

    Short tutorial on how to bind text, html and html attributes in Svelte and render it on our html templates.

  129. How to create a project in Svelte JS

    Short tutorial on how to create a project in Svelte Js and install all its dependencies and create your first app with Svelte Front-end framework.

  130. Fix- 'unexpected console statement (no-console)' Error in Node and Vue

    Short article on how to fix "unexpected console statement (no-console)" error in NodeJs and Vue using .eslintrc.js file and eslintConfig.

  131. Best way - Split an array into half in Javascript

    To divide an single array into half i.e into two different arrays without modifying the original array we can use Array.slice() method in JavaScript.

  132. Get multiple elements by Id using JavaScript

    To select elements by multiple Ids using JavaScript we have to use document.querySelectorAll() method instead getElementById() method in JavaScript.

  133. Fix - "fatal:refusing to merge unrelated histories" git error

    This article is about how to resolve or fix fatal:refusing to merge unrelated histories git error.

  134. Resolve - node unexpected token import error in Nodejs

    Article on how to resolve SyntaxError: Unexpected token import error in nodejs using type require instead of import and setting type attribute to module in package.json file.

  135. Update Parent data from child component in VueJs

    This article is about how to update parent data from a child component in vuejs. We will use custom events to pass data from child to parent component.

  136. Trigger an event on route change in Vue | VueJS

    This article is about how we can trigger an event when we change routes in vueJS. We will use watch method and beforeRouteUpdate guard to detect the changes in routes.

  137. Set URL Query Params In Vue Using Vue-Router

    Short tutorial on how to set URL query params in Vue with Vue-Router using router-link, router.push and router.replace

  138. [Solution] Add External Script Tags in Vue JS component

    The article is about how to add external Js script in Vue component. We will be using mounted() and two modules to add script tags in vue locally.

  139. How To Add Multiple Classes in VueJS | Class Binding

    Vuejs tutorial on how to add or bind multiple classes dynamically in Vuejs using v-bind directive.

  140. Call Vue Component Method from Outside the Component

    Find out how to call a method in a component from outside the component in Vue. Calling a child component method from the parent component.

  141. Pass multiple objects as props in Vue

    Short tutorial on how to pass multiple objects as props in vue using v-for directive.

  142. How to pass multiple props to component in Vue

    Short article on how to pass multiple props to a component in vue using v-bind.

  143. How to use computed property for v-for in Vue JS

    Quick tutorial about Vue computed property and how to use computed property value for v-for in Vue.

  144. How to reference static image assets in Vue JS

    Learn how to reference images from assets folder in Vue template using Webpack's require() method or using the relative path.

  145. Trigger a button click on pressing Enter in Vue

    Quick tutorial on how to trigger a button click in a form on pressing Enter on keyboard in Vuejs.

  146. Confirmation Box with Yes or No button in JavaScript

    Find out how to create confirmation dialog box to confirm yes or no in JavaScript using confirm() method.

  147. Set page title dynamically in Vue JS

    Short article on different methods to set document title dynamically using document.title property or vue-meta packages in Vue JS application.

  148. Update component when we change route in Vue

    Short tutorial on how to update the component whenever the route is changed in Vue to re-render the page and fire the created() or the mounted() hook.

  149. How to listen for props changes in VueJS?

    This article is about how to listen for prop changes in vue. We will be vuejs watcher or watch property to listen for any changes in props.

  150. YAML Comments - Inline And Block Comment

    This article is about YAML commenting and how to do inline or block multi-line comment in a YAML file.

  151. Horizontal scrolling div with arrows using HTML and CSS

    Tutorial on how to make horizontal scrolling div with arrows using html and css and for smooth scrolling we will use scrollBy() function in Javascript.

  152. What is insertAdjacentHTML() ? How to use it?

    Tutorial on Javascript insertAdjacentHTML() method and how can we use it to insert html elements to specific position in our HTML page.

  153. How to rename a local and remote Git branch

    Tutorial on how you can rename any local and remote git branches using git -m flag.

  154. How to add empty folder/directory in Git

    Find out how to add an empty folder/directory in our github repository to be tracked by git using .gitignore , .gitkeep and readme file.

  155. How to check GitHub email address and username in terminal?

    This article is about how to check GitHub email address and username from your terminal in windows and Mac.

  156. How to save username, email and password globally in Github?

    This post is about how to save username, email and password globally in Github using terminal.

  157. How to Create New Folder in Github Repository?

    This article is about how to create or add new folder in github repository directly from the web browser.

  158. Open Github repository in VS Code in Online

    This article is about how to open any github repository in VSCode in our browser online without the need of cloning the repo.

  159. Get user location from browser using JavaScript

    Tutorial on how to get user location like latitude and longitude from our browser using geolocation() function in JavaScript.

  160. Fixed Error - npm ERR! missing script: dev

    Find out how to fixed npm error, npm missing script dev while running the node serve in your javascript node project.

  161. How to make a placeholder for select box in HTML

    Short tutorial on how we can add placeholder text for the select option element for dropdown in Html without CSS.

  162. How to add Google Analytics in Vue?

    Short tutorial on how to integrate google analytics in our vue application. we will be using vue-gtag npm module to add analytics Id in our website and application.

  163. How to uninstall npm modules in NodeJS

    Short article on how to uninstall npm modules locally and globally from your computer completely.

  164. [Fixed] npm WARN : No description field in Node

    Find out how to fix npm warning - npm WARN: no description field from our node projects.

  165. How to get list of globally installed npm packages

    This article is about how to get the list of npm packages installed globally in your computer.

  166. How to make dashed line using HTML and CSS

    Short tutorial to make dashed line in HTML using hr tag and CSS repeating-linear-gradient() function.

  167. Convert seconds to minutes and seconds (mm:ss) using JavaScript

    Find out how to convert seconds to minutes and second format mm:ss using toString() and padStart() in JavaScript.

  168. Merge Two Arrays and Remove Duplicates - JavaScript

    Tutorial on how to merge two or more array and remove duplicates in JavaScript.

  169. Replace all occurrences of a string in JavaScript

    Tutorial on How to replace all occurrences of a string in JavaScript using replace() with regular expression (regex)

  170. Use Array forEach() to loop through JavaScript object

    FInd out how to use forEach in an object and return key, value and also convert it's properties to an array using JavaScript.

  171. Fixed Error: npm cannot find module error in NodeJS

    This article is no how to resolve npm cannot find module in nodejs. It is a very common error in javascript require method.

  172. JavaScript - Convert Days to Seconds

    Tutorial to write a program to convert days to seconds using JavaScript.

  173. Difference between block, inline and inline-block display in CSS

    Learn the use and difference between the block, inline and inline-block elements of the display property in CSS.

  174. How to make a collapsible list in html without JavaScript

    Short article on how to make a expand / collapse html div without using JavaScript. We can use details and summary tag to create a collapsible div.

  175. JavaScript - Iterate over the properties of an object

    Quick tutorial on how to iterate over object properties in JavaScript using for in loop statement and Object.entries() method.

  176. How to Get the ID of a Clicked Button or Element in JavaScript

    Find out how to get the id of a button when clicked in JavaScript using onclick event listener and passing on the this.id or this.target.id.

  177. How to check if a variable is a string in JavaScript

    Short article to check if a variable is a string or not using typeof operator in JavaScript.

  178. JavaScript - How to export multiple functions from a file

    In this article, we will be covering how we can export and import multiple functions in JavaScript.

  179. How to find exponent power of a number in JavaScript

    Find out how to get the exponent power of a number with and without using the Math.pow() method in JavaScript.

  180. How to multiply all numbers in an array using JavaScript

    Quick tutorial on how to multiply all the elements in an array using iterative i.e loop and reduce method in JavaScript.

  181. How to convert string to array in JavaScript

    Find out how to convert a string to an array in JavaScript using split() , spread operator and Array.from() methods.

  182. Get the index of an item in an array in JavaScript

    A quick tutorial on how to find the index of an item or element in an array in JavaScript.

  183. Return multiple values from a function in JavaScript

    Tutorial on how to return multiple values i.e more than one value from a function in JavaScript.

  184. How to check if String contains only spaces in JavaScript

    Quick way to check if a string contains only spaces or have empty string using trim() and regular expression using JavaScript.

  185. Round to the nearest hundredth of a decimal in JavaScript

    FInd out how to round off an floating value i.e a decimal number to the nearest hundredth using Math.round() and toFixed() method in javascript.

  186. Align the elements of <input> tag to center on HTML

    Find out how to align the element of the input tag to center on the html page using inline style and css.

  187. Check if a key exists in an Object in JavaScript

    Short article on how to check if a key exists in a JavaScript object using in operator and hasOwnProperty method.

  188. JavaScript hasOwnProperty() method of an Object

    Tutorial about the Javascript hasOwnProperty() method of an object, its use, advantages and limitations.

  189. How to set a default value to input with a v-model in Vue

    Find out the simple way on how to set a default value to input with v-model in vue.

  190. 5 ways to convert string to number in JavaScript

    Find out how to convert a string to a number in JavaScript using parseInt(), parseFloat(), unary plus and math.round method.

  191. Firebase 9 - How to detect first time login of new user using googleAuth

    Find out how to detect first time login of a new user using googleAuth in firebase 9.

  192. How to declare global variable in Vue JS

    Find out how to set and declare global variables in vue js 2 and vue 3 to access the variable any where in the project.

  193. How to convert a decimal number to an integer in Vue

    Short article on how to convert an decimal number to an integer in Vue using parseInt method.

  194. Fill array with incrementing numbers/ intergers using JavaScript

    Find out how to fill an array with incrementing numbers/integers using JavaScript's for loop and Array.from() method with keys().

  195. How to add background image with gradient overlay in CSS

    Short tutorial on how to add background image with semi-opaque / semi-transparent gradient over the image using CSS.

  196. How to remove bullets from unordered list using CSS

    Find out how to remove bullets from an unordered list using CSS property.

  197. How to disable the resizable property of a textarea

    Short article on how to disable the resizable property of a textarea using CSS property resize.

  198. How to add getter to an existing JavaScript Object

    Short tutorial on adding a getter to an existing JavaScript object using Object.defineProperty method.

  199. How to give gradient color to text using CSS.

    Short tutorial on how to add gradient color to text or header using CSS properties like background-clip, text-fill-color etc.

  200. How to Remove Underline from Links in Bootstrap.

    Find out how you can remove underline from links in bootstrap using CSS or simple using bootstrap class.

  201. How to redirect to another web page/ website using JavaScript

    Find out how to redirect to another web page or website using JavaScript location object

  202. Hide and Show element in Vue js - Toggle visibility

    Find out how to hide/show element on vue using inbuilt directives like v-if and v-show and class binding.

  203. How to get current position of the mouse in JavaScript

    Find out how to get the current position of the mouse from a JavaScript mousemove event.

  204. How to get value from JSON object in JavaScript

    Short article on how to get or fetch a value from a JSON object in JavaScript using JSON.parse() method.

  205. How to detect an undefined object properties in JavaScript?

    Find out how to detect an undefined object properties in JavaScript using typeof method.

  206. How to disable text selection highlighting using CSS

    Find out how to disable text selection highlighting using CSS to prevent someone from selecting text from website.

  207. Pretty Print JSON Programmatically using JavaScript

    Find out how to beautify or pretty print a JSON string Programmically in JavaScript.

  208. How to add dynamic Key to an object in JavaScript

    Short tutorial on how to create and add dynamic key to an object in JavaScript using bracket syntax and ES6 methods.

  209. How to get object keys from JavaScript object ?

    Find out how to get object's key from JavaScript Object using object.keys() method or for...in loop.

  210. Check if multiple values exists in an array using JavaScript

    Tutorial on How to check if multiple values exist within an JavaScript array using includes(), every() and indexOf() method.

  211. Convert a Unix timestamp to time in JavaScript

    Find out how to convert a unix timestamp to time format in JavaScript using toLocaleTimeString() method.

  212. How to covert JavaScript object to JSON string?

    Find out how to convert JavaScript object to JSON string using JSON.stringify() method.

  213. How to convert a JSON string into a JavaScript object

    Find out how to convert a JSON string into a JavaScript object using JSON.parse() method.

  214. Difference between JSON.stringify() and JSON.parse() in JSON

    Article on the difference between JSON method, JSON.stringify() and JSON.parse() in JSON

  215. How to remove a property from an object in JavaScript?

    This article is about how to remove a property from an object in javascript using delete operator.

  216. Convert array to string with brackets and quotes in JavaScript

    Short article on how to convert an array to a string while preserving brackets and quotes.

  217. How to get current route name in VueJs?

    Find out how to get the current name of the route and the path in Vue 2 and Vue 3.

  218. Open router link in a new tab in Vue

    Learn how to open router-link or external url links in a new tab / window in Vuejs

  219. Append Item To Array In JavaScript

    This article is about how to add or append items in an array using push() and spread operator.

  220. Capitalize First Letter of a String in JavaScript

    This article is about how to capitalize the first letter of a string using JavaScript.

  221. Change default port number in Vue CLI App

    Short article on how to change the default port number i.e 8080 in vue-cli via terminal and package.json file.

  222. How to Check null Values in JavaScript? | isNull() JavaScript

    Find out how to check if object values is null in JavaScript using isNull() function.

  223. How to stop and exit a Function In JavaScript?

    Find out how to stop or exit a function in javascript using return statement or try catch statement.

  224. JavaScript : 5 Ways to Empty an Array

    A short tutorial on different methods on how to empty or clear an array in JavaScript along with examples.

  225. Compare Two Strings in JavaScript | String Comparison

    Tutorial on how to compare two case insensitive strings in JavaScript. Using localeCompare() to do string comparison with case-sensitive strings.

  226. How to Remove Object from Array in JavaScript?

    Tutorial article on how to remove object from an array in javascript using splice(), slice() and filter() methods.

  227. How to write isNumber() in JavaScript?

    Tutorial on how to code a isNumber() function to check if a value is a number or not in JavaScript.

  228. How can I do String interpolation in JavaScript?

    Article on different ways we can do string interpolation in JavaScript using template literals or string templates.

  229. How to remove hashbang (#) from URL in Vue ?

    Short tutorial on how to remove the hash from the URL in VueJS with Vue Router 3 and 4

  230. How to update vue-cli to latest version?

    Article about how to update vue-cli from version 2 to latest versions like Vue CLI 3 or 4.

  231. Truncate A String in JavaScript with Example

    Find out how to truncate a string or paragraph in JavaScript using string length property and slice() or substr() method.

  232. Add New Line In JavaScript with Example Codes

    Tutorial on how to add or print new line in JavaScript console and in DOM output.

  233. Add Days to a Date in JavaScript with Example

    Tutorial on how to add days to a date using JavaScript methods like getDate() and setDate().

  234. JavaScript - How to Remove Character From A String.

    Find out how to remove character from a string in JavaScript using replace() and split and join method.

  235. Compare Elements of Two Arrays in JavaScript

    Find out how to compare elements of two arrays in JavaScript using JSON.stringify(), toString(), every() or Lodash and uderscorejs.

  236. Get Tomorrow's Date using JavaScript - Quick Way

    Tutorial on how to get tomorrow's date using JavaScript and momentjs library

  237. Npm update all dependencies in NodeJS

    Article on how to npm update all dependencies to latest version in Nodejs.

  238. Check if String Is a Number or Not in JavaScript

    Tutorial on how can I check if a string is a valid number or not in JavaScript.

  239. Include external CSS file in Vue.js component

    Tutorial on how to include external or local css in vue globally or only in one component.

  240. Check If a file or folder exist in NodeJS | Javascript

    Tutorial about how to check if a file or folder exist in your file system synchronously or asynchronously in Nodejs.

  241. Check if String is Empty in JavaScript

    This tutorial is about how to check if a string is empty in JavaScript.

  242. How to Randomise/shuffle array elements using JavaScript

    Tutorial on how to randomise shuffle an array in JavaScript.

  243. Retrieve random item from an array in JavaScript

    This post is about how to write a program to retrieve random item from an array in JavaScript.

  244. Generate Random Number in a specific range in JavaScript

    This post is about how to generate random number in a given range in JavaScript.

  245. How to change git username and password on PC

    This post is about how to change git username and password locally and globally in your computer.

  246. Solution-Merge two or more arrays in JavaScript

    This post is about how to merge two or more arrays together using JavaScript.

  247. Quick Way to Reverse an Array in JavaScript

    This post is about how to reverse an array in JavaScript using reverse() and unshift() methods.

  248. Add node_module folder to .gitignore file

    This post is about excluding node module folder from Git by adding it to gitignore file.

  249. Remove Whitespace from JavaScript String

    This post is about how to remove whitespace from a string in JavaScript.

  250. How to copy or clone an array in JavaScript

    This post is about how to copy or clone an array in JavaScript using in-built JavaScript methods.

  251. How to convert an array to string in Javascript

    This post is about how to convert an array to string in JavaScript with or without commas.

  252. Get Current Date in Different Date Formats in JavaScript

    This article is about how to get JavaScript current date in different formats likes mm-dd-yyyy or dd-mm-yyyy.

  253. Check if a string contains a substring in Javascript

    This article is about how to check if a string contains a substring using JavaScript methods.

  254. [Solve] npm WARN package.json: No repository field

    This article is about how to solve npm warn package.json: no repository field in our nodejs applications.

  255. Convert String To Float in JavaScript

    This article is about how to convert a string to float using parseFloat() function in JavaScript.

  256. Copy text from an HTML element to clipboard-JavaScript

    This article is about how to copy text from an html element to clipboard using JavaScript. You can copy from element with input field.

  257. How to Remove Last Character from a string in javascript

    This article is about how to remove last character from a string using JavaScript using splice() and substring() method.

  258. Code on how to get Yesterday date in JavaScript

    This article is about how to get yesterday's date in JavaScript. We will get current date using new Date() and the substract one day from it.

  259. Remove first and last element from an array in JavaScript

    This article is about how to remove first or last element from an array in JavaScript using in-built functions like pop(), shift() and splice().

  260. Unexpected end of JSON input in JavaScript | FIXED

    This article is about how to fix unexpected end of JSON input in javascript while using JSON.parse() method.

  261. How to fix "npm ERR cb() never called" | Quick Fix

    learn how to fix npm ERR cb() never called error in nodejs easily. This methods will solve the error from node and npm easily.

  262. Uninstall/Remove package using Yarn

    This article is about what are the best practices that we can follow to yarn remove package and update yarn.lock file properly.

  263. Sort an array of String with non-ASCII characters.

    This article is how to sort an array of string with non-ASCII characters. Using localeCompare() we can sort mixed array with non-ascii characters.

  264. How to Remove Trailing Slash from URL in Nuxt + Netlify ?

    This article is about how to remove trialing slash from URL in nuxt js hosted in Netlify as server.

  265. How to Add External JS Script in Nuxt Component

    This article is how to add external javascript script in nuxt component by using head() method

  266. How do I wrap text in <code> tag HTML

    This article is on how to wrap text in code tag in html. We will use white-pace, word-break and word-wrap CSS property to get our result.

  267. Convert image to webp in nuxtjs | Image Optimization

    This article is about how to optimize image by converting image to webp in nuxt application.

  268. How to insert an item into an array at a specific index in JavaScript?

    This article is about how to insert a item or element in a specific index in an array in javascript.

  269. Single-line and Multi-line Comment | Javascript Comment

    This article is about single-line and multi-line comments in JavaScript and it why it is important to comment our codes while programming.

  270. How to Check if Object is Empty in JavaScript

    This article is about how to check if object is empty in javascript. we will be using hasownproperty(), Object.keys() method and lodash to check empty object.

  271. Check if an array includes a value/element in javascript.

    This article is about how to check if an array includes a particular element or value in JavaScript. Using includes() method we can check the item in an array.

  272. 3 ways to loop an array in JavaScript | Quick ways

    This article is about ways to loop in JavaScript. we will learn three ways to liip in javascript: forEach, for of loop and for loop using javascript.

  273. How to remove a specific item from an array in JavaScript ?

    This post is about how to remove a specific item from an array in JavaScript using indexOf and splice method.

  274. How to force git pull to overwrite local files ?

    This article is about how to force git pull to overwrite local files.

  275. Hide Admin Path on Deployment in NetlifyCMS.

    This article is about how to hide admin route in Netlify CMS on deployment of the site. It will not allow us to access the admin dashboard of netlify when the site is live.

  276. How to run Netlify CMS admin locally?

    This article about how to run the NetlifyCMS admin locally in your PC. We can run netlify cms admin in localhost using netlify-cms-proxy-server.

  277. How to add dynamic HTML attributes in VueJS ?

    This article is about how to add dynamic HTML attributes in VueJS . The v-bind helps us to add any attribute to our HTMl while working in vue.

  278. 3 Ways to Combine Multiple Strings into a Single String | Concatenate Strings

    This tutorial is about how to combine or join multiple strings in to a single string in javascript. we will learn three ways to concatenate add string in javascript.

  279. 3 Ways to generate random string/characters in JavaScript

    We will learn about three ways on how to generate random strings/characters in javascript. We will use Math.random() method, shortid npm module and inbuilt method toString() method in javascript.

  280. How to create Multiline string in JavaScript?

    This article is about how to create multiline string or comment in javascript. To create multil-ine string we will be using template literals in javascript.

  281. Default value for prop function in VueJS

    The article is about how to set default value for function prop in vuejs. For props like Function and O

  282. How to set default value of props in VueJS ?

    This article is on how to set default values in props in VueJS. Default values are used when the props are not passed from parent component to its child component.

  283. How to convert an array of objects to an object in JavaScript ?

    This article is about how to convert an array of objects to a single object in Javascript using Object.assign() method and spread operator.

  284. How to merge two or more objects into one object in Javascript?

    In this article we will merge two or more objects into one object with both their properties using object.assign method and spread operator in javascript.

  285. How to add custom static 404 error page in Nuxt ?

    This article is about how to add a custom static 404 page in our nuxt application. 404 error page willbe the fallback page if a page is not found in the static site.

  286. How to Add Syntax Highlighting PrismJS to Nuxt

    This article is about how to add a code syntax highlighter PrismJS to Nuxt and configure PrismJs theme in NuxtJS.

  287. How to sort an array alphabetically in javascript?

    This article is about how to sort an array alphabetically in javascript. In javascript we have a sort() method which sort elements of an array in place in ascending order.

  288. Convert javascript array to object of same keys/values

    This article is about how to convert javascript array to object of same keys/values. To convert the array to object of same keys/values pair we will use reduce() method in javascript.

  289. How to convert an array to object in javascript?

    Here, we will learn how to convert an array into an object in javascript. we will use Object.assign() method and spread operators to convert it to an object.

  290. How to access LocalHost on your mobile device?

    Here, we will learn how to access LocalHost in your mobile browsers and views your website running on LocalHost from your mobile.

  291. Prevent body from scrolling when a modal is opened.

    Here, in this article we will learn on how to prevent body from scrolling when a modal is opened using javascript and wheel eventListener. It will disable the scroll when the modal is open.

  292. Disable scrolling Behaviour on a body with element on position fixed in mobile.

    In this article we will learn on how to disable the scroll behaviour of a body on a element with position fixed on mobile devices..

  293. How to add Google Analytics in Nuxt Application?

    This article is about how to add google analytics in our nuxt application. we will see about adding Google Analytics 4 in this article too along with the Universal Id version.

  294. Format a number to specific number of decimal places in Javascript.

    here, we will learn on how to format a number to a specific number of decimal places in javascript using toFixed() method.

  295. How to check Nuxt Version Easy and Quick

    In this tutotrial, we will see how we can check the nuxt version quickly using the terminal or from the package.json file.

  296. How to redirect to external url in vue

    Here we will learn how to redirect to an external url or link in vuejs. We will be using window inbuilt property, window.location.href to redirect to an external URL.

  297. How to call a function in VUE template?

    Here we will define and call a function in vue template. We need to define a function in methods and use a click event to call the function from the template.

  298. How to add common header and footer in vuejs.

    In this article we will learn how to import a common header and footer component in our vuejs application. We can do it by global reference and local reference.

  299. How to repeat a string n number of times in JavaScript

    Article on how to repeat a string n number of times in JavaScript. We will use the inbuilt function repeat() and also code a custom repeat function to repeat a string.

  300. Convert date to long date format using Javascript

    Learn how to convert a date to a long date format using Javascript. To convert it to a long format we will be using a toLocaleDateString() method in javascript.

  301. Get the 10 characters from a string using Javascript.

    How to get the first 10 character from a string using Javascript. Here we will extract the first 10 character from a string using the substring() method in javascript.

  302. How To Add Defer And Preload in script and link tags in Nuxtjs Application

    This post is about how we can add defer and preload in script and link tags in our nuxtjs application to improve the performance of the pages.

  303. [FIX] Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.

    how to fix the error Your Git Gateway backend is not returning valid settings. Please make sure it is enabled in netlify cms

  304. How to generate sitemap for dynamic routes in nuxtjs application

    Here we will create sitemap in nuxtjs application. Learn to generate sitemap for dynamic routes in your nuxt project.

  305. How to make list of objects in Netlify CMS using list and object Widget

    In this tutorial we will learn how to make list of objects for netlify cms using list widget and object widget

  306. How To Add Google Font in Nuxt Application

    Here in this article we will see how to add google font in nuxtjs application

  307. How To Add Font Locally In Nuxt App

    Add font locally in nuxtjs project from google font

  308. How To Add Robots.txt in your Nuxtjs Application

    Here in this article we will see how to add robots.txt file in nuxtjs application while building or generating the website.