In this episode of Syntax, Wes and Scott answer coding questions posed by ChatGPT like what’s the difference between rem and em in CSS, the difference between a callback function and a promse in Node, what are Fastify plugins, and more!
09:36 What is the difference between a for loop and a while loop in JavaScript?
11:11 What is the difference between the “em” and “rem” units in CSS, and when would you use each of them?
13:15 What is the difference between a callback function and a promise in Node.js?
14:57 In JavaScript, what is the difference between a function declaration, a function expression, and an arrow function, and how do they affect the concept of hoisting?
18:39 How do you define a custom scalar type in GraphQL?
21:30 With Deno, can you provide an example of an experimental API that requires the “–unstable” flag and explain its purpose?
26:59 What’s the difference between a div and a span?