Q.
Write a JavaScript program to find the area of a triangle where lengths of the three of its sides are 5, 6, 7.
Solution 2
Q.
Write a JavaScript program to convert temperatures to and from Celsius, Fahrenheit.
Solution 3
Q.
Write a JavaScript program to find the largest of three given integers.
Solution 4
Q.
Write a JavaScript program to capitalize the first letter of each word of a given string.
Solution 5
Q.
Write a JavaScript program to check if a given positive number is a multiple of 3 or a multiple of 7.
Solution 6
Q.
It is found by comparing two DNA strands and counting how many of the nucleotides are different from their equivalent in the other string.Find out the difference in 2 strings. How many chars are different ?
Solution 7
Q.
Determine if a sentence is a pangram. A pangram (Greek: παν γράμμα, pan gramma, "every letter") is a sentence using every letter of the alphabet at least once. The best known English pangram is "The quick brown fox jumps over the lazy dog." The alphabet used is ASCII, and case insensitive, from 'a' to 'z' inclusively.
Solution 8
Q.
Determine if a word or phrase is an isogram.
Solution 9
Q.
Convert a long phrase to its acronym.Techies love their TLA (Three Letter Acronyms). Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG).
Solution 10
Q.
Create a JSON data object for Facebook news feed, should have data for author name, author image, post content, list of likes, comments and share etc. Now you must be able to query these :
a. Check how many posts are there by a particular user in your feed ?
b. How many likes on 5th post ?
c. Who are the users who liked 5th post ?
d. Who is the First user to like 5th post ?
e. How many users are there who have both commented and liked 5th post. Also show list of those users.
f. Find out the person who has commented most on your feed. (In top 10 posts)
Solution 11
Q.
Create a JS object representing your facebook friendlist.
a. Delete friends who have fake as first name. ( e.g fake singh)
b. Add 2 more friends to your friendlist at a time.
c. print all friends in your friendlist sorted by Name.
d. print all friends in your friendlist sorted by Length of Name( # of chars)
e. print initials of all your friends (Virat Kohli becomes VK)
f. print only friends who have same first names