First Week of JavaScript Class

I learned about JS conditions. The else…if statements will determine which condition to pass on true or false. Our instructor set couple of conditional test and the students had to determine how to write the syntax. While using the condition operator to determine what is true and false. The word else would only run if the condition is not true.

2. What is the difference between == and === ?

== is used to compare two variables, return true if two operands are equal and it will return false if the operands are not equal.

===compare two variables and the operator also checks datatype and compares two values. It returns true only if both values and data types are the same for the two variables.

3. What is the value of foo? var foo = 10 + '20';

Its ‘1020’ because of it’s string concat operation.

4. Describe what a terminal application is.

It’s a operating system that is used to create folders in finder. We can input commands to the terminal to access the computer directory. We use the terminal to push repositories in github.

5. What is the ternary operator?

It take 3 operands: a condition followed by a question mark (?), then an expression to execute if the condition is truth followed by a colon (:), and finally the expression to execute if the condition is false. This operator is frequently used as a shortcut for the if statement.

6. What are some ways to ensure that your website design or web application is accessible and user-friendly?

You can make sure the url is correct. Have the navigation clear and point user to the right direction. The web layout is readable. Make sure there’s no broken codes on the website. It’s also compatible with mobile/tablet users. Used good color schemes.

7. What are your favorite features of HTML5, and how have you implemented them in your front-end development projects?

I like using the video features. Developers can easily upload and stream videos from the website. You can add width and height of the video and hit play and pause. You can also use different headers and footers in a div.

8. How do you structure your CSS and JavaScript to make it easier for other developers to work with?

Write clear CSS codes. Follow the steps and make sure you have the correct section names that fit the content to your code. Code organization. Creating shorter codes can help.

9. What’s your process for addressing browser-specific rendering problems? Do you find that a certain browser is more challenging to work with than others?

You can always run a browser compatibility test. Depends on what type of computer you have. Make sure the browser matches the computer software. I used chrome on my Macbook. I know internet explorer and safari is not as efficient for my file downloads. I believe firefox and Internet explorer are the most challenging to work with because I don’t use them most of the time.




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

Recommended from Medium

Functional Programming in Javascript — an example

Build a Bulk Order Form using the BigCommerce Storefront API and React

Authentication in GraphQL

Vuex - the enterprise setup

JS Shorts — Call and Apply

Getting Started with Heroku and Deploy a React.js App using Heroku

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
Meng Fu

Meng Fu

More from Medium

Javascript: Basics 101 — Variables & execution context.

6 Terminal Commands To Get You Started with the Command Line [For Beginners]

❌You Don't Know How JavaScript Copy Variables (Shallow Copy)

Functional Programming with Javascript