View sourcecode

The following files exists in this folder. Click to view.

exercise.js

1 lines ASCII Unix (LF)
1
/**
 * Question 1
 **/
 document.writeln(sumNumbers(10,10));

 document.writeln('<br>');

/**
 * Question 2
 **/
 document.writeln(productNumbers(5,5));

 document.writeln('<br>');

/**
 * Question 3
 **/
 document.writeln(sumRangeNumbers(10,20));

 document.writeln('<br>');

/**
 * Question 4
 **/
 document.writeln(stringPhrase('John'));

 document.writeln('<br>');

/**
 * Question 5
 **/
 document.writeln(stringResponse('How are you?'));

 document.writeln('<br>');

/**
 * Question 6
 **/
 document.writeln(checkIfHigher(5, 10));

 document.writeln('<br>');

/**
 * Question 7
 **/
 document.writeln(printRange(1, 10));

 document.writeln('<br>');

/**
 * Question 8
 **/
 document.writeln(stringRepeat("test", 5));

 document.writeln('<br>');

/**
 * Question 9
 **/
 document.writeln(calculateInterest(1000, 3, 5));

 document.writeln('<br>');

/**
 * Question 10
 **/
 document.writeln(countNumbers(20, 10));

 document.writeln('<br>');

/**
 * Question 11
 **/
 document.writeln(inRange(15));

 document.writeln('<br>');

/**
 * Question 12
 **/
 document.writeln(fizzBuzz(1, 20));

 document.writeln('<br>');