Guest User

Untitled

a guest
Jun 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <script id="jsbin-javascript">
  2. function shouter(whatToShout) {
  3. return 'shouter:'+ '"as you can hear i am whispering + !!!"';
  4. }
  5. // tests
  6.  
  7. function testShouter() {
  8. var shouter = 'whatToShout';
  9. shouter.toUpperCase();
  10. var expected = 'SHOUTER:'+ '"AS YOU CAN HEAR I AM WHISPERING + !!!"';
  11. var actual = shouter(whatToShout);
  12. if (expected === actual) {
  13. console.log('SUCCESS: `whatToShout` is working');
  14. }
  15. else {
  16. console.log('FAILURE: `whatToShout` is not working');
  17. }
  18. }
  19. </script>
  20.  
  21.  
  22. <script id="jsbin-source-javascript" type="text/javascript">function shouter(whatToShout) {
  23. return 'shouter:'+ '"as you can hear i am whispering + !!!"';
  24. }
  25. // tests
  26.  
  27. function testShouter() {
  28. var shouter = 'whatToShout';
  29. shouter.toUpperCase();
  30. var expected = 'SHOUTER:'+ '"AS YOU CAN HEAR I AM WHISPERING + !!!"';
  31. var actual = shouter(whatToShout);
  32. if (expected === actual) {
  33. console.log('SUCCESS: `whatToShout` is working');
  34. }
  35. else {
  36. console.log('FAILURE: `whatToShout` is not working');
  37. }
  38. }</script>
Add Comment
Please, Sign In to add comment