This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Video Source --> | |
| <!-- https://www.pexels.com/video/aerial-view-of-beautiful-resort-2169880/ --> | |
| <section class="showcase"> | |
| <header> | |
| <h2 class="logo">Travel</h2> | |
| <div class="toggle"></div> | |
| </header> | |
| <video src="https://traversymedia.com/downloads/videos/explore.mp4" muted loop autoplay></video> | |
| <div class="overlay"></div> | |
| <div class="text"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const user = { age: null }; | |
| // if (!user.age) user.age = "unknown"; | |
| user.age ??= "unknown"; | |
| console.log(JSON.stringify(user)); |