JavaScript setTimeout() method example

setTimeout() method is used to execute a piece of code after a certain delay. In this post, I will show you how to use setTimeOut with examples.

Read

How to create one circular image in React Native

A circular image is required in many places like a profile picture, album cover etc. It is pretty easy to create in react native. If you know how to add one image component, then you can simply jump to the code. I will show you how to make one image circular, how to add one border with width and color in React Native.

Read

while loop in C++ Explanation with examples

while loop is similar to for loops. Using a loop, you can execute a piece of code repeatedly until a condition fails. In this blog post, we will learn how to use while loop in C++ with examples.

Read

How to make password TextInput style in React Native

In this tutorial, we will learn how to make one TextInput component to take password inputs. By default, if you enter any text in a TextInput field, it is visible. Converting it to a password field means changing the text not readable to the user.

Read

React Native switch component explanation with examples

Switch is available in both android and iOS. This component is mainly used to add one turn on/off feature in Mobile apps. React-native provides one switch component with a couple of different props. In this tutorial, we will learn how to use this component and its props.

Read

C++ if...else, if..elseif...else and nested if...else

if...else statements are decesion making statements and these statements are mostly used statements in any programming language. In this post, we will learn how to use if...else in c++ with examples.

Read

Kotlin program to get binary representation of integer

Kotlin program to get the binary representation of an integer value. We have two different ways to find out the binary representation of an integer value. Let me show you how :.

Read

Kotlin sortedBy method example

Kotlin sortedBy is useful to sort collection items. You can use it to sort items in natural order or by using a selector function. It returns a list of all elements sorted. In this quick example, I will show you how to use sortedBy with examples.

Read

Python program to print the current installed version

In almost all programming languages, sometimes, you might have to check the current installed version. For example, if you are using one python method that is available only to a specific version and above, it is a good practice to add one fallback option, i.e. check if the current installed python version is equal or greater to that required version or not.

Read

Kotlin string slice method example

Kotlin String class provides one method called slice to get one sub-string containing the characters defined by the method argument. It has two variants. In this post, I will show you how to use this method with examples :.

Read