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 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
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, 18.02.2021 01:30
question
English, 18.02.2021 01:30
question
Mathematics, 18.02.2021 01:30
Questions on the website: 13722362