subject

Write a program that uses console. log to print all the numbers from 1 to 120, with two exceptions. for numbers divisible by 4, print "fizz" instead of the number, and for numbers divisible by 10 (and not 4), print "buzz" instead. when you have that working, modify your program to print "fizzbuzz", for numbers that are divisible by both 4 and 10 (and still print "fizz" or "buzz" for numbers divisible by only one of those).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
You know the right answer?
Write a program that uses console. log to print all the numbers from 1 to 120, with two exceptions....
Questions
question
Mathematics, 09.07.2019 06:00
question
Chemistry, 09.07.2019 06:00
question
Chemistry, 09.07.2019 06:00
question
Mathematics, 09.07.2019 06:00
Questions on the website: 13722363