Write a program that outputs numbers from 1 to 100. Except, for every 3rd number, it should write "V", for every 5th number it should write "R" and for every 15th number it should write "VR".
Example output:
1
2
V
4
R
V
7
8
V
R
11
V
13
14
VR
Write a function that takes two words as an argument and returns true if they are anagrams (contain the exact same letters) and false otherwise.
Example usage:
isAnagram('abc', 'bac'); // true
isAnagram('abc', 'abcc'); // false
isAnagram('abd', 'dba'); // false
Write a function that performs multiplication without using the native "*
" operator.
Example usage:
multiply(3, 5); // 15