Guest User

Untitled

a guest
Dec 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function shouter(whatToShout) {
  2. return `${whatToShout.toUpperCase()}!!!`;// your code here
  3. }
  4.  
  5. /* From here down, you are not expected to
  6. understand.... for now :)
  7.  
  8.  
  9. Nothing to see here!
  10.  
  11. */
  12.  
  13. // tests
  14.  
  15. function testShouter() {
  16. const whatToShout = 'fee figh foe fum';
  17. const expected = 'FEE FIGH FOE FUM!!!';
  18. if (shouter(whatToShout) === expected) {
  19. console.log('SUCCESS: `shouter` is working');
  20. } else {
  21. console.log('FAILURE: `shouter` is not working');
  22. }
  23. }
  24.  
  25. testShouter();
Add Comment
Please, Sign In to add comment