JSFiddle

Ahmed's public fiddles

• **solution** For loop that will iterate from 0 to 15 to find even and odd numbers

**solution** For loop that will iterate from 0 to 15 to find even and odd numbers

• Compute the greatest common divisor (GCD) of two positive integers

Compute the greatest common divisor (GCD) of two positive integers

• construct the following pattern, using a nested for loop

* * * * * * * * * * * * * * *

• find the armstrong numbers of 3 digits

find the armstrong numbers of 3 digits

• Write a JavaScript program to find and print the first 5 happy numbers.

Write a JavaScript program to find and print the first 5 happy numbers.

• solution* compute, the average marks of the following students

solution* compute, the average marks of the following students

• conditional statement to sort three numbers. Display an alert box to show the result.

conditional statement to sort three numbers. Display an alert box to show the result.

• Write a JavaScript conditional statement to find the sign of product of three numbers. Display an alert box with the specified sign

Write a JavaScript conditional statement to find the sign of product of three numbers. Display an alert box with the specified sign

• return all the palindromic substrings in a string and each of their lengths

return all the palindromic substrings in a string and each of their lengths

• Write a JavaScript program to pass a 'JavaScript function' as parameter.

Write a JavaScript program to pass a 'JavaScript function' as parameter.

• SOLUTION***JavaScript function to get the function name

solution** JavaScript function to get the function name

• longest Palindrome In String

longest Palindrome In String

• function to find longest substring in a given a string without repeating characters

function to find longest substring in a given a string without repeating characters

• find the first not repeated character

find the first not repeated character

• count the number of occurrences of a specified letter within the string.

count the number of occurrences of a specified letter within the string.

• Write a JavaScript function that generates a string id (specified length) of random characters.

Write a JavaScript function that generates a string id (specified length) of random characters.

• function that returns array elements larger than a number.

function that returns array elements larger than a number.

• **Recurrence** solution** come back to**binary search

searching JavaScript arrays with a binary search.

• Write a JavaScript function to get the number of occurrences of each letter in specified string.

Write a JavaScript function to get the number of occurrences of each letter in specified string.

• solution* Write a JavaScript function to extract unique characters from a string.

Write a JavaScript function to extract unique characters from a string.