4 Replies - 260 Views - Last Post: 29 June 2012 - 01:39 PM

#1 pegster  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 29-June 12

New to Javascript

Posted 29 June 2012 - 01:28 PM

I do not understand a piece of code and where exactly each piece goes.

What part would you put the functions searchit(arr, num) and the n = getNumber(); in your code.
Is This A Good Question/Topic? 0
  • +

Replies To: New to Javascript

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 6487
  • View blog
  • Posts: 23,569
  • Joined: 12-June 08

Re: New to Javascript

Posted 29 June 2012 - 01:32 PM

In between the script - javascript tags at in the header of an html file?
<html>
<header>
<script type="text/javascript">
// here
</script> 
</header>
<body>
</body>
</html?

Was This Post Helpful? 0
  • +
  • -

#3 pegster  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 29-June 12

Re: New to Javascript

Posted 29 June 2012 - 01:36 PM

View Postmodi123_1, on 29 June 2012 - 01:32 PM, said:

In between the script - javascript tags at in the header of an html file?
<html>
<header>
<script type="text/javascript">
// here
</script> 
</header>
<body>
</body>
</html?


So you are saying that I should put my code for function :

<html>
<header>
<script type="text/javascript">
// here

// the function searchit(arr, num) and the n=getnumber() here?
</script>
</header>
<body>
</body>
</html?
Was This Post Helpful? 0
  • +
  • -

#4 DarenR  Icon User is offline

  • D.I.C Lover

Reputation: 200
  • View blog
  • Posts: 1,545
  • Joined: 12-January 10

Re: New to Javascript

Posted 29 June 2012 - 01:37 PM

It's all a preference...


<html>  
 <header>  
 </header>  
 <body>  
 </body>  
 <script type="text/javascript">  

 // here  

 </script>   

 </html>

Was This Post Helpful? 0
  • +
  • -

#5 pegster  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 29-June 12

Re: New to Javascript

Posted 29 June 2012 - 01:39 PM

Thank you
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1