└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # js-problems-part1-practice-tasks 2 | 3 | ### Task-1: 4 | Write a function to convert temperature from Celsius to Fahrenheit. 5 | 6 | --- 7 | 8 | ### Task-2: 9 | You are given an array of numbers. Count how many times the a number is repeated in the array. 10 | 11 | sample-input: 12 | numbers = [5,6,11,12,98, 5] 13 | 14 | find: 5 15 | 16 | output: 2 17 | 18 |
19 | 20 | sample-input: 21 | 22 | numbers = [5,6,11,12,98, 5] 23 | 24 | find: 25 25 | 26 | output: 0 27 | 28 | 29 | 30 | ---- 31 | ### Task-3: 32 | Write a function to count the number of vowels in a string. 33 | 34 | --- 35 | ### Task-4: 36 | Write a function to find the longest word in a given string. 37 | 38 | sample-input: 39 | I am learning Programming to become a programmer 40 | 41 | sample-output: Programming 42 | 43 | ---- 44 | ### Task-5: 45 | Generate a random number between 10 to 20. 46 | --------------------------------------------------------------------------------