You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
791 B
JavaScript
40 lines
791 B
JavaScript
// console.log("Hello World");
|
|
|
|
|
|
//Objective 1
|
|
//Add code here
|
|
//Note: function name is numberLooper
|
|
|
|
function numberLooper=(count=0;){
|
|
if (count<=50;)
|
|
break;
|
|
console.log(numberlooper);
|
|
let message='The current value is at <count>. Terminating the loop.'
|
|
|
|
|
|
|
|
|
|
|
|
//Objective 2
|
|
let string = 'supercalifragilisticexpialidocious';
|
|
console.log(string);
|
|
let filteredString = '';
|
|
|
|
//Add code here
|
|
|
|
|
|
|
|
|
|
|
|
//Do not modify
|
|
//For exporting to test.js
|
|
//Note: Do not change any variable and function names. All variables and functions to be checked are listed in the exports.
|
|
try{
|
|
module.exports = {
|
|
|
|
filteredString: typeof filteredString !== 'undefined' ? filteredString : null,
|
|
numberLooper: typeof numberLooper !== 'undefined' ? numberLooper : null
|
|
}
|
|
} catch(err){
|
|
|
|
} |