Answer:
let cookieNumber = Math.floor(Math.random() * 10)
switch (cookieNumber) {
case 1:
document.write('Fortune 1')
break;
case 2:
document.write('Fortune 2')
break;
case 3:
document.write('Fortune 3')
break;
case 4:
document.write('Fortune 4')
break;
case 5:
document.write('Fortune 5')
break;
case 6:
document.write('Fortune 6')
break;
case 7:
document.write('Fortune 7')
break;
case 8:
document.write('Fortune 8')
break;
case 9:
document.write('Fortune 9')
break;
case 10:
document.write('Fortune 10')
Explanation:
The cookieNumber is generated using Math.random(), which is rounded to a whole number using Math.floor(). Then, a switch block is used to display a different fortune depending on the value of cookieNumber.
Use Easybib.com for your citations. All you have to do is type the name of your sources in to "easybib" and choose if it is a book or a website, then copy it on to a word document.
I hope you can understand this and it helps!!
Answer:
A and B
Explanation:
EC2 run command gives a management output to review various instances and servers. Here, the logging files, collecting metrics and patches, running script installations can be achieved.
Verify the user permission and the run command, confirms if whether or not the problem of missing logging files is from the settings.
There are several AWS and customer managed policies for cloudwatch logs to give users certain levels for permission. Verifying this determines if there is full access, group logs and creation of group log events, or even a read only access.
The answer & explanation for this question is given in the attachment below.