You’re closer than you think to a career in tech. Our grads have launched rewarding new careers — you can too.View Our Jobs Report
It’s also a good idea to add comments throughout your code using either a double backslash (//) or enclosing a statement in the following way:
Adding comments helps other developers understand the thought process that went into different code sections. You can also use comments to mark out sections of code that you want to render non-functional without deleting them entirely.
Variables function as memory placeholders for information used within your program. For example: If you wanted to create a place to store a person’s name, you could declare a variable with the statement let firstName = “Fred”, then use the firstName variable throughout your program.
3. Data types
4. Alert, prompt, and confirm
Alerts, prompts, and confirms allow you to either provide messages to the user or take in information. For example, you can use the statement alert(“Hello there”) to send a greeting to someone when they take an action like clicking a button or hovering over a link.
Prompts allow you to pass information to the user and ask for a response that allows the program to proceed. Confirms ask the user if they agree or disagree with a specific action before proceeding.
8. Making HTTP requests with RESTful JSON
Hypertext Transfer Protocol (HTTP) is the protocol used to structure requests and responses sent between a client and server. It’s how the internet pulls up internet pages when you enter an address. Representational state transfer (REST) works on top of HTTP to make it more powerful.
Using REST with JSON helps it provide more support to client browsers. You’ll find RESTful JSON takes up less bandwidth and integrates easier into websites.
Frameworks set you up with the basics that take care of the more repetitive coding requirements. That helps you get started more quickly on the more complicated aspects of your application.
React is less of a framework and more of a library that contains components that allow you to quickly build fast, interactive user interfaces for web and mobile applications. The open-source front-end library was created by a Facebook engineer. Applications like Instagram were built entirely with React components.
The biggest difference between Angular and React is that you can build an entire application with Angular, while React is geared more toward creating web components
Content Marketing Manager
Since we opened our doors in 2012, thousands of students have joined Flatiron School to launch new careers in tech.
Find the perfect course for you across our in-person and online programs designed to power your career change.
Connect with students and staff at meetups, lectures, and demos – on campus and online.
Have a question about our programs? Our admissions team is here to help.