Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shouter(whatToShout) {
- return whatToShout.toUpperCase() + '!!!';
- }
- // tests
- function testShouter() {
- var whatToShout = 'fee figh foe fum';
- var expected = 'FEE FIGH FOE FUM!!!';
- if (shouter(whatToShout) === expected) {
- console.log('SUCCESS: `shouter` is working');
- }
- else {
- console.log('FAILURE: `shouter` is not working');
- }
- }
- testShouter();
Add Comment
Please, Sign In to add comment