5 Fantastic Ways of Using JavaScript

JavaScript is becoming increasingly used with the progression of modern technology!

If you were a writing code for the web over 10 years ago, it would have been hard to imagine that JavaScript (JS) would ever be used outside of the browser. The journey started when Node.js was first released in 2009, allowing JavaScript to be run on the server-side. Intentionally or not, Node.js opened up JavaScript to all new purposes, such as building robots, controlling drones, and even writing native mobile apps.

Learn about five surprising and creative ways that software developers are using JavaScript to think outside the box.

 

  1. JavaScript and robots 

Recently, more and more developers have been playing around with hardware, using parts such as Arduino boards to build custom robots. Turns out there are groups within the JavaScript community that are really interested in robotics, and they put in a lot of effort into building custom robots with the programming language. One such community is Nodebots. They hold meetups all over the world, where developers can get together, learn more, and hack on robots using JavaScript.

 

  1. Flying drones 

If building robots from scratch isn’t your thing but you’re still interested in controlling stuff in the real world using JavaScript, then why not explore the booming world of Drone Flying? If you’re interested in making your own drone take off using JavaScript, you should know that it doesn’t take much effort. Download the ar-drone NPM package, type a few lines of code, and your drone will be flying in no time!

 

  1. Virtual Reality 

Another technology gaining traction is virtual reality (VR) headsets such as the Oculus Rift, Samsung Gear and Google Cardboard. And while writing 3D maps for VR headsets sounds really hard, it doesn’t have to be. There is an open source framework called A-Frame that allows developers to write VR experiences using JavaScript and HTML.  Imagine creating 3D scenes using HTML markup that works across desktop, mobile devices and VR headsets.

 

  1. Native Mobile Apps 

There’s nothing new about writing mobile apps within webviews, but let’s face it, it’s not really native. That’s why projects such as NativeScript and React Native were created. Developers who are already familiar with JS can now write actual native mobile applications for iOS, Android and Windows Phones. This allows apps written in JavaScript to stay blazing fast and able to access all of the native APIs.

If you’ve been considering writing native mobile apps but have been weary of learning a new programming language, fear no more! JS is here to save the day once again.

 

  1. Operating systems 

NodeOS is an operating system written entirely in Javascript (JS). Yes, you read that correctly; somebody wrote an entire operating system using JS. Now, if that hasn’t blown your mind, wait until you find out that the only way to install packages into this operating system is through NPM. The project’s aim is to run on real hardware such as desktops and laptops, as well as cloud providers like Amazon Web Services. What started out as a fun proof-of-concept project has grown into something real.

 

While these five uses  might seem difficult at first, one of the amazing things about JS is that it is still a beginner-friendly language, with an active and helpful community. This is readily apparent on JavaScript.com, a free resource that helps both beginners learn JS and keeps advanced developers up to date with the latest news in the community.

Do you have knowledge in working with Javascript? Check out our latest Software Development Role by following this link. It might be right up your alley!

 

– Sergio Cruz