Answer:
The factorial of 3=6
Explanation:
Following are the description of the given question
- This is JavaScript code .Here items are the variable that are holding the integer value "3".
- After that there is 2 loop are iterating one is outer and one inner loop.
- When i=1 1<=3 the condition of outer loop is true the control moves the inner loop .
- In the inner loop there is variable result that is initialized by 1 Now checking the condition of inner loop j=i i.e j=1 1>=1 condition of inner loop is true it executed the statement inside the inner loop so result =1 .Now we increment the value of i of the outer loop.
- i=2 2<=3 the condition of outer loop is true the control moves the inner loop .
- In the inner loop there is variable result that is initialized by 1 Now checking the condition of inner loop j=i i.e j=2 2>=1 condition of inner loop is true it executed the statement inside the inner loop so result =2 .Now we increment the value of i of the outer loop.
- Now i=3 3<=3 the condition of outer loop is true the control moves the inner loop .
- In the inner loop there is variable result that is initialized by 1 Now checking the condition of inner loop j=i i.e j=3 3>=1 condition of inner loop is true it executed the statement inside the inner loop so result =6 .Now we increment the value of i of the outer loop.
- i=4 4<=3 the condition of outer loop is false the control moves from the outer loop.
- It print The factorial of 3=6
It is just a declaration of an object variable, <em>person</em>, in JavaScript. Within a <em>person</em> object, there are key:value pairs. The code that you shared has the following keys: name, age, and favouriteFood, whereas the values of those keys are: Mike, 25, and pizza.
There is <em>no</em> alert statement in this code snippet; therefore, it <em>will not alert </em>anything. This code contains only a variable called <em>person, </em>and that's it!
Answer:
Primary storage refers to the main storage of the computer or main memory which is the random access memory or RAM. Secondary storage, on the other hand, refers to the external storage devices used to store data on a long-term basis.
Answer:
Generation in computer terminology is a change in technology a computer is/was being used which includes hardware and software to make of an entire computer system .