All Blog Posts ✒️

  1. Remove Whitespace from JavaScript String

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

  2. 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.

  3. 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.

  4. 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.

  5. How to check list of globally installed npm packages

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

  6. (Resolved) npm ERR! missing script: start in Node.js application

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

  7. (Resolved) cannot use import statement outside a module Error

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

  8. Resolve - node unexpected token import error

    This article is about how to resolve node unexpected token import error in nodejs.

  9. 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.

  10. [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.

  11. Convert String To Float in JavaScript

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

  12. 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.

  13. 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.

  14. Enable or Disable button programmatically using JavaScript

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

  15. 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.

  16. 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.

  17. Resolve- Refusing to merge unrelated histories git error

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

  18. 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().

  19. 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.

  20. 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.

  21. ⚡ Resolve 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.

  22. Best Practices to yarn remove package

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

  23. 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.

  24. 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.

  25. [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.

  26. 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

  27. 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.

  28. Convert image to webp in nuxtjs | Image Optimization

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

  29. Open github repository directly in vscode in browser online

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

  30. 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.

  31. 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.

  32. 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.

  33. 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.

  34. 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.

  35. 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.

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

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

  37. 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.

  38. 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.

  39. 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.

  40. 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.

  41. 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.

  42. 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.

  43. 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.

  44. 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

  45. 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.

  46. 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.

  47. 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.

  48. 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.

  49. 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.

  50. 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.

  51. Add Code Syntax Highlighter PrismJS to Nuxtjs

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

  52. 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.

  53. 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.

  54. 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.

  55. 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.

  56. 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.

  57. 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..

  58. How to add Gogole Analytics in Vue?

    In this article we will add google analytics in our vue application. we will be using vue-gtag npm module to add analytics Id in our website and application.

  59. 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.

  60. 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.

  61. 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.

  62. How to change color of <hr> element with css.

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

  63. 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.

  64. 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.

  65. 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.

  66. 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.

  67. 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.

  68. 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.

  69. 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.

  70. [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

  71. 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.

  72. 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

  73. How To Add Google Font in Nuxt Application

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

  74. How to clear cache in npm? [Solution]

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

  75. How To Add Font Locally In Nuxt App

    Add font locally in nuxtjs project from google font

  76. 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.