JavaScript – Detect if a string contains any space
In this post, we will see how to detect any whitespace in a string. To detect if a string has any space in it, we can use the regex test()…
Read moreCheck if String starts with a space in JavaScript
In this post, we will see how to check whether the first character in a string is a space or not using Javascript. To check if a string starts with…
Read moreConvert and Save HTML elements as Image using JavaScript
In this post, we will learn how to save an HTML element as an image from a webpage. To convert or save any HTML element or entire webpage as an…
Read moredate.getDate() is not a function error in JavaScript – Fixed
In this short post, we will see why we get and how to solve the “date.getDate() is not a function” Error in Javascript. The error “date.getDate() is not a function”…
Read moreConvert a string into integer or float using Python
In this short article, we will see how to convert a string value into an integer in python. To convert any string value into an integer we can use the…
Read moreSplit String and get the first element using python
In this post, we will discuss how to get the first element after we split a string into a list in python. In Python, we can use the str.split() method…
Read moreHow to split a list into multiple list using python
In this post, we will learn how to split a list into multiple lists of N chunks in Python. Python provides a simple way to split a list into multiple…
Read moreSplit string by whitespace in python
In this post, we will learn how to split a string by spaces in python. To split a string by whitespace in python we can use the split() method. It…
Read moreClear cache in Yarn: yarn cache clean
In this article, we will learn why and how to clear cache in yarn from your local storage. Yarn (Yet Another Resource Negotiator) is a package manager just like npm…
Read more