javascript

6 different ways in JavaScript to print the content of an array

Learn how to print the content of an array in JavaScript in 6 different ways. We will learn how to use a for loop, while loop, do-while loop, forEach, for-of and for-in to print the array content in JavaScript.

Read
javascript

How to remove all zeros from a number string in JavaScript

JavaScript program to remove all zeros from a number string. This post will show you three different ways to do that- by traversing the string, by using replace() and by using parseInt or parseFloat methods.

Read
python

How to use logical operator with strings in Python

Learn what are logical operators and how to use logical operators in Python. This post will show you how to use logical operator with strings in Python.

Read
javascript

3 ways in JavaScript to remove all hyphens from a string

JavaScript program to remove all hyphens from a string. This post will show you three different ways to remove all hyphens from a given string in JavaScript

Read
javascript

JavaScript string codePointAt method explanation with example

Learn how to use codePointAt method of JavaScript string in this post. codePointAt is an inbuilt method of JavaScript string and this method can be used to get the unicode code point value at a given index.

Read
javascript

JavaScript Array isArray method explanation with examples

Javascript Array.isArray() method explanation with examples. The isArray method is used to check if an object is an array or not. Learn how to use this method with examples.

Read
C++

C++ program to find all prime numbers to n using sieve of Eratosthenes algorithm

C++ program to find all prime numbers to n using sieve of Eratosthenes algorithm. Learn how to implement sieve of Eratosthenes algorithm in C++.

Read
javascript

JavaScript array some() function explanation with examples

JavaScript Array some() function explanation with examples. You will learn different examples of some() function in this post.

Read
C++

C++ program to find the sum of the first and last digits of a number

C++ program to find the sum of first and last digits of a number. The C++ program will take a number as input from the user, find the sum of the first and the last digits and print it on console.

Read
C++

C++ program to convert hexadecimal to decimal

C++ program to convert a hexadecimal value to decimal. The hexadecimal number system is base 16 number system. This program will take a hexadecimal value as an input from the user and print the decimal conversion.

Read