subject

Code Example 2-1 1. var myAge, newAge; 2. myAge = prompt("How old are you?"); 3. myAge = parseInt(myAge); 4. newAge = 18 - myAge; 5. alert("You will be eligible to vote in " + newAge + " years"); (Refer t o Code Example 2-1) What would be returned if the user entered "fifteen" at the prompt?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:50
Assume that you have an sorted array of records. assume that the length of the array (n) is known. give two different methods to search for a specific value in this array. you can use english or pseudo-code for your algorithm. what is the time complexity for each algorithm and why?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Some peer-to-peer networks have a server and some don't. true false
Answers: 2
You know the right answer?
Code Example 2-1 1. var myAge, newAge; 2. myAge = prompt("How old are you?"); 3. myAge = parseInt(my...
Questions
question
Mathematics, 06.03.2020 19:14
question
Mathematics, 06.03.2020 19:14
Questions on the website: 13722359