JS211 blog 1

Today in class we learned about if/else statements and the best ways to write them with many conditions.

== compares two variables but ignores the datatype, === checks the datatype as well.

foo = ‘1020’

A terminal application is an app ran in a terminal, like the Rock paper scissors app we did in class. It allows us to accomplish tasks on the computer without the use of the GUI

A ternary operator takes 3 commands: a condition followed by a question mark, an expression to execute if the condition is true, followed by a colon and an expression to execute if the condition is false. It can be used instead of an if statement.

Get feedback from users, have an easy to read layout, and have a good font/color scheme.

I like using div containers to help seperate out my code and keep everything organized.

Naming classes and id’s, keeping a consistent format, and always simplifying code if possible as to not repeat myself.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Guide to Real-Time App Options in 2021

No React-Create-App Script

A 2020 JavaScript Salary Tool Using Machine Learning

Update our knowledge, where to start?

Hoisting and Temporal Dead Zone in JavaScript.

How To Manage Sessions in Node.js Using Passport, Redis, and MySQL

How to manage sessions in Node.js using Passport, Redis, and MySQL

Building documentation websites is trivial with Swagger and Gatsby/React

Choosing Package Managers: Yarn vs NPM

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ryan Pearson

Ryan Pearson

More from Medium

How to Hire Front-End Developers: Steps You Should Follow

100 days of code #2

Getting small projects going

Helpful lectures and instructors in Udemy for me to learn web development from zero