๐๐ฟ๐ผ๐ป๐๐ฒ๐ป๐ฑ ๐๐ฒ๐๐ฒ๐น๐ผ๐ฝ๐ฒ๐ฟ ๐ ๐ผ๐ฐ๐ธ ๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ ๐ญ
I took a mock interview for a Frontend Developer role. It covered HTML, CSS, and JavaScript. You will find the key questions below.
Semantic Tags These tags describe the meaning of content. They help search engines and screen readers.
- Header: Top section.
- Nav: Navigation links.
- Main: Primary content.
- Article: Independent posts.
- Aside: Side content.
- Footer: Bottom section.
Flexbox vs Grid
- Flexbox: One dimensional. Use for rows or columns. Great for nav bars.
- Grid: Two dimensional. Use for rows and columns together. Great for dashboards.
Display None vs Visibility Hidden
- Display none: Removes element. No space remains.
- Visibility hidden: Hides element. Space remains.
Var, Let, and Const
- Var: Function scoped. Allows re-declaration.
- Let: Block scoped. No re-declaration.
- Const: Block scoped. No re-assignment.
Primitive vs Non-Primitive
- Primitive: Single values. Stored in stack. Immutable.
- Non-Primitive: Collections. Stored in heap. Mutable.
Type Casting
- Explicit: You change the type manually.
- Implicit: JavaScript changes the type automatically.
Ternary Operator Shorthand for if else. Condition ? Result if true : Result if false.
Arrays vs Objects
- Array: Ordered list. Uses index.
- Object: Key-value pairs.
Source: https://dev.to/vidhya_murali_5aabe7784bd/frontend-developer-mock-interview-1-52j