Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please explain in great detail, i will give thums up Propect 1 First, create anHTML. page with a sacripts block in the chead. section of
please explain in great detail, i will give thums up
Propect 1 First, create anHTML. page with a sacripts block in the chead. section of the docursent. this serift should include the following - Creale a function named ifelsetest() - inside the function create in 1f... else itafernent. - Use the return value of a corfirm dalog bos as the test expession for the if statenert. - If the cenfirab method returna true ciesce code that refects thas fesit to the urer. - Use the else diase to execute some code if the confirn() method retuma folse. Cal the ifflsefest() function uning the enlead ewert havider insile the cbody) lag Project 2 Neit, create another kimML page with a cscript block in the the ady section of the documene this scret ahould include the fillowing - Create af function named whilefest(), inside the fuection oreite a valible nathis nater and astign it a value betacen 1 and io. - Geate another varlable named answer and assign it a value of o (tero) - Then create a whi le loop. Creose code that will couse the locp to erecude as long as the nuaber varible does not equal the answer variable. - inside the loop asingn the ansmer variable the return value from a pronge dalog bor. - The prompt will ask the user to guest a number between 1 and 10 . The loop wil cont nue unbi the proper anwwer is ectered - After the loop exts, use an alet dialog ber to iffom the user of a conect gurss. correct ansaer, eut the function and alert the vser that he or the is out of goesset vu an alent dabg box. - Eperiment with different methods that you hawe seon for caling the function You can une the load wert of the onctick went hander of a fone bution Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started