The find() method finds the specified word or substring into a string and returns the index of its first character. In case if it doesn’t find the substring then it returns -1
The endswith() method checks if the string ends with a specified substring. The endswith() function has three parameters in which the first is mandatory and two are optional.
SASS is Syntactically Awesome Stylesheet, if you are working with CSS then you should learn SASS, sass is an extension of CSS and Sass is a CSS preprocessor
Python has two built-in methods that convert capitalized alphabetic letters into lower case which are casefold() and lower().
You can convert the first character into uppercase through capitalize() method.
In golang, you can convert strings into lower case by using the ToLower() function from the string package. It accepts strings as an argument and converts into lower case.
Mixin is used in Sass, which is a CSS preprocessor. Mixin works as a function in Sass and accepts arguments. Means you can pass arguments in the mixin.
Golang provides a ToUpper() function that converts strings into uppercase.
In Python you can access an element from the list through the index number. To access an element you need to attach a square bracket and add the index number that needed to access.
PHP 8 built-in function str_ends_with() accepts two parameters and checks if the second parameter’s position is at the end of the first parameter.
The str_starts_with() function checks if the string starts with the provided string, in other words we can say it checks if a sentence or phrase starts with a specific word or an alphabet letter.
The str_contains() function helps to search the string into another, or for easy understanding, it searches a word, letter or phrase in the sentence.
Comparison operator compares two values in the if-statement. There are six comparison operators in Python programming language.
A shortened version of the condition statement is called the ternary operator. Ternary operators can be simple or nested.
In flutter, there are few functions that convert a float or double data type into an integer.
In flutter, you can convert the string data type into an integer through int.parse() method. It accepts a string as an argument and converts it into an integer.
In the Go programming language, you can convert a float value into an integer through the int() function.
You can concatenate two or more strings by using the plus operator in Golang.
To convert a string value into an integer, you need Atoi() function from strconv package. It takes the value as an argument and converts it into an integer.
here are two available ways in PHP for converting float value into integer, in which first is the intval() function and (int).
Float value can be converted into an integer by using Python’s built-in function int(). It converts the first argument’s data type into an integer.
You can use Python’s built-in int() function to convert the string into an integer. It accepts two parameters which first is required and the second is optional.
A string value can be converted into an integer value through type casting or intval() function in PHP.
You need to use the date() class from the datetime module and busday_count() method from the numpy module to get business days count between two dates.
The map() method returns a new transformed array while the forEach() method returns undefined. The map() method has the ability to chain other methods but forEach() method can’t be chained with other methods.
To display time with AM and PM we can use the format() method with characters that display time accordingly.
We can use carbon class to get the number of weekend days between two dates in the Laravel framework.
Learn to change the format of a given date in python. The datetime class accepts three parameters. First is the year, second is the month and third is the day.
To convert a date string into a different format, first, you need to convert it into a datetime object through strptime() function.
We can get the current time through the datetime module and strftime() function. The datetime module provides the current time and strftime() function represents it.
To get the current day, month, and year in python we can use the datetime class from the datetime module that provides different classes to deal with date and time.
To get all environment variables from the .env file in Laravel we can use the PHP super global variable $_ENV. It returns all environmental variables in array format.
To update multiple records with the same data you need to use the whereIn() function along with the update() function in the Laravel framework.
To change the background color using the onClick event in JSX, in the react JS we use the onClick event in the JSX, and pass a function instead of String, the function we pass in onClick event use naming camelcase convention.
The spread operator takes out the existing elements of the array and creates a new array after adding values.
To fetch today’s record you need to use the whereDate() function in your query along with the now() method from the carbon class.
In python, the ‘+’ operator is used to concatenate two strings. Let’s Suppose, to concatenate “Hello” and “World”, you need to use the ‘+’ operator in between.
To use the useState hook you need to import it into the component. It accepts variables, call-back functions, and an array to update the states.
In an array, we are allowed to store multiple values or data items. For example, we have a list of names like “Apple, Banana, Grapes, Mango” etc.
Every value has a specific data type, when we change the data type of value from one to another is called type casting.
Variables are data storage that stores provided data to specified variables. In python you can declare a variable without any symbol.
Create a file in the source (SRC) directory with .vue and open it in the HTML editor.
Event handling is an important aspect of building a dynamic website for every front-end developer. Event handlers verify user actions, user input, and browser actions.
In the Laravel framework, the collection class provides a has() method that checks if a key exists in the collection.
Go to Python’s official website and click on the download page. Or you can directly open the page where installer files are listed for different operating systems.