0
   

2018123

 
 
ibk1995
 
Reply Sat 17 Nov, 2018 08:24 am
Write a javascript with a loop that prints out 1- 10.
Write a javascript with a loop that prints out 10-1.
Write a javascript that asks the user to input a number. The number is then passed to a function. The function contains a loop that loops the number you’ve passed in (e.g. if the user entered 4, you loop 4 times). Each time you multiply the number by itself. When you are done, return the new number you calculated to the main program and print it out. (e.g., if you entered 3, you’d multiply 3x3x3, which would give you 27. 27 is the number you’d return to the main javascript.
Write a javascript that asks the user to input a number. The number is then passed into a function you write that contains a loop. The loop will loop the number you passed into the function and print out the word “ha” that many times. For instance, if I entered 3, the function would print out “ha ha ha”.
Write a JavaScript program to sort a list of N elements.
Write a javascript and use the correct Array method to sort the fruits array alphabetically where fruits = ["Banana", "Orange", "Apple", "Kiwi"];.
Write a javascript to change the (text) color of the p element to "red".
Write a javascript to add a section that will alert("Neither") if fruits is neither "banana" nor "apple".
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 3,390 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » 2018123
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/25/2024 at 07:34:26