# JavaScript Programming

## JavaScript > Code Examples

### Convert string to integer

An Expression Tree for an Infix Expression -
C++ Program to construct an Expression tree for an "Infix Expression". A binary expression tree is a specific application of a "binary tree" to evaluate certain expressions. These trees

Count Occurrence Positive Zero Negative -
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number

Program Finds Prime Numbers in a Range -
Program should display every prime number between 'range' and at the end total number of "prime numbers" found in range. Separate function which receives "two parameters" for

Most Significant Bit (MSB) of a number is -
In C programming language we use bitwise AND & operator to check status of any bit. Bitwise AND operation evaluate each bit of resultant value as 1, if corresponding bit of...

Concatenate 2 Strings without using strcat -
In the following program user would be asked to enter 'two Strings' and then the C program would 'concatenate them'. For concatenation we have not used the standard library strcat()

No sort, but reversing a [linked list] c code -
Code add a lnode at the beginning of the list. Reverse the whole list. Display the whole linked list. Insert some numbers. Add a lnode at the beginning of the list. Add new node.

Code find power of number using for loop -
C program to find power of a number using for loop. Input base and exponents from user. Store it in two variables say base and expo. Declare & initialize another variable to store

Convert Binary Code of a Number into its -
C Programming Language code to convert binary code of a number into its equivalent gray's code without using recursion. Gray is also represented using 0s and 1s. Speciality