Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Total test time : 30 minutes
  2.  
  3.  
  4. 1. Construct (native)JavaScript function that accept a parameter as (n) to generate result as below:
  5.  
  6. *
  7. **
  8. ***
  9. ****
  10.  
  11. (Est. Time 5 minutes)
  12.  
  13.  
  14. 2. Construct (native)JavaScript function that accept a parameter as (n) to generate result as below:
  15.  
  16. ****
  17. ***
  18. **
  19. *
  20. **
  21. ***
  22. ****
  23.  
  24. (Est. Time 10 minutes)
  25.  
  26.  
  27. 3. Construct (native)JavaScript function that accept a parameter as (n) to generate result as below:
  28.  
  29. 1
  30. 21
  31. 123
  32. 4321
  33.  
  34. (Est. Time 5 minutes)
  35.  
  36.  
  37. 4. Construct JavaScript (native) function that will create (n as parameter) button elements.
  38. For each button thats is created should show an alert when clicked. The alert will show the (n) number of the
  39. button.
  40.  
  41. Example:
  42. When I click the 1st button should show alert like "Button 1 clicked" and so on.
  43.  
  44. (Est. Time 10 minutes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement