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
| [ | |
| { | |
| "uuid": "a1b2c3d4-e5f6-g7h8-i9j0k1l2m3n4", | |
| "name": "Sterling Archer", | |
| "show": "Archer", | |
| "voice_actor": "H. Jon Benjamin" | |
| }, | |
| { | |
| "uuid": "b2c3d4e5-f6g7-h8i9-j0k1l2m3n4o5", | |
| "name": "Leela", |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Cache Storage</title> | |
| <link rel="stylesheet" href="./css/main.css" /> | |
| <script type="module" src="./js/main.js"></script> | |
| </head> | |
| <body> |
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 url1 = 'https://picsum.photos/id/123/300/200'; //200 status | |
| const url3 = 'https://picsum.photos/id/237/300/200'; //200 status | |
| // const url3 = 'https://picsum.photos/id/466/300/200'; //200 status | |
| const url2 = 'https://jsonplaceholder.typicode.com/posts'; //200 status | |
| const url6 = 'http://127.0.0.1:5500/300/index.html'; | |
| const url4 = 'https://picsum.photos/id/999999/300/200'; // 404 status | |
| const url5 = 'https://example.com/bad-url'; //bad domain | |
| import { AfternoonError } from './error.js'; | |
| document.addEventListener('DOMContentLoaded', () => { |
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
| //promises.js | |
| document.addEventListener('DOMContentLoaded', function () { | |
| getData(); | |
| }); | |
| function getData() { | |
| let url1 = 'https://picsum.photos/id/237/300/200'; | |
| let url2 = 'https://picsum.photos/id/466/300/200'; | |
| let url3 = 'https://picsum.photos/id/123/300/200'; |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Syncing Data Page</title> | |
| <script src="./js/main.js" type="module"></script> | |
| <link rel="stylesheet" href="./css/main.css" /> | |
| </head> | |
| <body> |
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
| class Burger { | |
| #isMeatless = false; | |
| #isCooked = false; | |
| toppings = []; | |
| constructor(_isMeatless = false, ...toppings) { | |
| this.#isMeatless = _isMeatless; | |
| this.toppings = toppings; | |
| } |
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
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| // This widget is the root of your application. |
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
| void main() { | |
| for (int i = 0; i < 5; i++) { | |
| print('hello ${i + 1}'); | |
| } | |
| } |
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
| # JavaScript Development Topics | |
| This is a sequence for learning JS topics. It is not an absolute list of all topics, nor is it a mandatory order that you must use to learn JS. It is just a logical sequencing of some of the more | |
| important topics and features of the language. | |
| 1. Variables | |
| - using `let` and `const` | |
| - declaring variables | |
| - assigning values to variables |
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
| import { NavigationContainer } from '@react-navigation/native'; | |
| import { createNativeStackNavigator } from '@react-navigation/native-stack'; | |
| import { SafeAreaProvider } from 'react-native-safe-area-context'; | |
| import { Button } from 'react-native'; | |
| import HomeScreen from './screens/HomeScreen'; | |
| import ListScreen from './screens/ListScreen'; | |
| import DetailScreen from './screens/DetailScreen'; | |
| const Stack = createNativeStackNavigator(); |