Im Viktoria from Hungary and I would appreciate if you can help me with this problem 😮
Regularly I never do this, but Im desperate to get this done…I was trying quite hard, but I think I was not made for this javacript…( dont believe that I ask to do it for me, I will post the code i wrote after it explain what this is about ?
code:
<html><head>
<title> Vicky </title>
<script type=”text/javascript”>
function maxValue(theArray, numValues){
</script></head><body>
<form id=”finalForm” name=”finalForm”>
<input name=”button1″ value=”button1″ type=”button”><br>
<br>
<input name=”text1″ value=”text1″ type=”text” size=”20″>
</form>
</body></html>
In my university the gave me an assignment that is the following. ?
Write the code for a function name maxValue() with two parameters, named theArray and numValues. The Javascript function should use a loop and a conditional statement to FIND THE MAXIMUM VALUE IN THE ARRAY and then return the value.
The user of the page should populate the array by an inputbox (window.prompt) using a for loop.
It is asked as well that we use the parseInt() function to convert the input data to integer