Skip to content

Instantly share code, notes, and snippets.

View tech-chieftain's full-sized avatar

Salah Al-Dhaferi tech-chieftain

View GitHub Profile

SQL discussions

  1. What is the difference between SQL and MySQL?
  2. What do you mean by DBMS? What are its different types?
  3. What are the types of joins in SQL? Give an example for each one.
  4. What is a Primary key?
  5. What are the different operators available in SQL?
  6. What is the need for group functions in SQL?
  7. What is a Relationship and what are they?

React useEffect Discussion

The goal from this discussion is to solidify your understanding about useEffect after studying about it before the class and in the class.

Please discuss the following questions between you and answer them in the comment section below.

Questions:

  1. What is useEffect?
  2. What do we mean when we say that useEffect is a hook?

HTML Discussion Questions

For each discussion question, please write the answer in your own words. You may also optionally comment your answers in the comment section below (if you have a GitHub account).

  • What does HTML stand for?
  • What is the purpose of HTML?
  • What is an HTML tag?
  • What does <div>, <p>, <h1>, and <a> stand for?
  • What is semantic HTML?
  • Why is semantic HTML important?
  • Identify and fix the bug in the following code
// ! Examples
const product = {
name: "Smartphone",
brand: "Apple",
model: "iPhone 12 Pro",
price: 999,
color: "Space Gray",
storage: "256GB",
inStock: true,
branch: {

Questions: Frontend File Setup

Answer the following questions with your group:

  • How do you link a JavaScript file to an HTML document?
  • How do you link a CSS file to an HTML document?
  • What are the roles of HTML, CSS, and JavaScript on a webpage?
  • What is the DOM? How is it related to HTML, CSS, and JavaScript?
  • How does HTML get rendered into DOM?
  • What are elements?

Scopes Discussion

1. What is the scope of variable GLOBAL_DATA in the example below:

<script>
  let GLOBAL_DATA = { value : 1};
</script>
@tech-chieftain
tech-chieftain / discussions2.md
Created January 13, 2023 20:02
Objects Discussion

Object Discussion Questions

There is some coding in this discussion. Feel free to write them in a REPL or in the comments below.

  1. How is an object different from an array?
  2. How does const work with objects?
  3. Explain the difference between bracket syntax and dot syntax. Give an example of something that works with bracket syntax but not dot syntax. Give an example of something that works with dot syntax but not bracket syntax.
  4. What are computed properties? Write an example code.
  5. What is the difference between Object.keys and Object.entries? Write example code using both of them.
  6. How do we get only the values of an object?
@tech-chieftain
tech-chieftain / pr-template.md
Last active February 20, 2024 13:25
A PR template for teams to use.

Overview

[Write a quick summary of what changes does this PR introduce]

Resolved issues

[Use closing keywords with issues numbers to mention the targeted issues and close them automatically on merge] Example: This PR closes #1, closes #9, and closes #20

Description

[Write a description in detail of what this PR does.]

@tech-chieftain
tech-chieftain / discussion.md
Created October 8, 2022 08:23 — forked from halitbatur/discussion.md
Object discussion questions

Object Discussion Questions

There is some coding in this discussion. Feel free to write them in a REPL or in the comments below.

  1. How is an object different from an array?
  2. How does const work with objects?
  3. Explain the difference between bracket syntax and dot syntax. Give an example of something that works with bracket syntax but not dot syntax. Give an example of something that works with dot syntax but not bracket syntax.
  4. What are computed properties? Write an example code.
  5. What is the difference between Object.keys and Object.entries? Write example code using both of them.
  6. How do we get only the values of an object?