Reading Time 10 mins
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
Posted by Blair Williamson / June 22, 2021
Learn to Code Python: Free Lesson for Beginners
Sabrina Hernandez: From Dental Tech to UX / UI Product Designer
After 7 years as a dental tech, Sabrina Hernandez was ready for a change. She enrolled in Flatiron School and has since pivoted into a career in UX / UI Product Design.