Jump to content


- - - - -

Semicolons


  • You cannot reply to this topic
3 replies to this topic

#1 Callum

    EC Newbie

  • Members
  • Pip
  • 16 posts

Posted 28 May 2008 - 09:43 AM

So you put semicolons after your javascripts?
I try to so that I remember for PHP.

I'm terrible at putting colons in PHP :)

#2 Vinnie

    EC Sophmore

  • Members
  • PipPipPipPip
  • 90 posts

Posted 29 May 2008 - 10:04 PM

In javascript and php you put a semicolon at the end of a function. Like in php echo "Hi";

#3 imHavoc

    EC Newbie

  • Members
  • Pip
  • 7 posts

Posted 03 November 2008 - 09:53 PM

if I can remember from reading a JS book, you don't HAVE to place semi-colons, although it is better format, right?

#4 Joe

    Root Administrator

  • EC-Owner
  • PipPipPipPipPipPipPipPip
  • 393 posts

Posted 02 October 2011 - 03:01 PM

imHavoc,

Javascript can be a really funny language sometimes. Because it isn't a strict language (like php or C#) you can get away with a lot of improper syntax, such as not putting semi-colons at the end of your statements. However, it is proper to do so.
joemeyer@exchangecore.com
Any requests for designs,scripts or web-hosting please visit our Client Center.
Thank you for supporting ExchangeCore!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users