# JavaScript Programming

## JavaScript > Code Examples

### A Container with an HBox layout

Add Two Matrix Using Multi-Dimensional -
In this program, user is asked to entered the number of rows r & columns c. The value of r & c should be less than 100 in this program. Then, the program adds these two matrices,

Find the First Capital Letter in String Using -
C program code to find the first Capital letter that exists in string, using recursion. We have included ctype.h in order to make use of "int isupper(char);" function that's defined inside

Calculates the Mean Variance & Deviation -
This C Program calculates the mean, variance and standard deviation. The formula which is used in this c program are mean = average of the numbers. var=(summation( ( Xj - average

C++ Programs Finds kth Smallest Element -
"Partitioning the array" on the basis of values at high as pivot value. Swapping value at high and at the index obtained. Partitioning array using last element as a pivot. And recursively

Pass Structure as an argument to Function -
We have a function 'printStudentInfo()' which takes structure Student as an 'argument' and 'prints the details' of student using structure varaible. The important point to note here is

C++ Sample Code Implement Bucket Sort -
Divide the range into equal parts and assign a 'bucket' to each part. Split the data and insert them into the Corresponding bucket by using insertion sort. 'Merge' all the buckets into one

C Program Code Find the Length of String -
C Program calculate length of string without using strlen() function. You can use standard library function 'strlen()' to find the length of a string, this C program computes the length

C++ Coding Generating Random Numbers -
Following C++ program generate 100 random numbers using rand() function of stdlib.h. To generate random numbers in C++, we use the function rand() to generate and print random