You need an Apple Mac computer that can run OSX Mavericks to run Xcode. To distribute to the app store or test on device you need a paid $99/year Apple Developer Account. If you have a modern Mavericks-capable mac, you're fine.
If you are running on a PC, and wish to develop your app in JS/HTML/CSS, there are some options for you without buying a Mac.