# JavaScript Programming

## JavaScript > Code Examples

### A Function's arguments and caller Properties

C Program code Simple Account software -
Enter the Name of the Custumer. Enter the Acc.no of the Custumer. Enter the Balance of the Custumer. Enter the name of Customer whose rec. is to be modified. Enter the new

Program Code Search an Element in a Tree -
Program search element in a tree recursively. Program searches for a given Node in a Tree. The Tree we have used is the "Binary Search Tree". A Binary search tree follows a concept

C++ Codes Finds Sum of Natural Numbers -
The "positive numbers" 1, 2, 3... are known as natural numbers. The program below takes a 'positive integer' from the user and calculates the sum up to the given number. You can find

Program Code Displays Number in Words -
C Language code input a number and print it into words using for loop. Input number from user. Find total digits in n. Store reverse of n in j. Find total trailing zeros. Extract last digit

Check Whether the Number is Palindrome -
If the reversed integer is equal to the integer then, that number is a palindrome if not that number is not a palindrome. In program, use is asked to enter a 'positive number' which is

C Segregate 0s on left side 1s on right side -
C Program to Segregate 0s on left side and 1s on right side of the Array (Traverse Array only once). Function to segregate all 0s on left and all 1s on right. Increment left index while we

Illustrate Stack Operations using MACROS -
C Language Use #define function to define the macros. Define separate functions for the operations like push, pop, display etc. Use switch statement to access these functions.

Generates Random Directed Acyclic Graph -
This algorithm takes the input of the number of edges 'e' in the random "DAG". It connects 2 'Random Vertexes' and checks for any cycle generated due to this edge. If yes discard this