This file contains 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
{ | |
"components": [ | |
{ | |
"name": "all-articles", | |
"display_name": null, | |
"created_at": "2024-02-06T12:44:13.814Z", | |
"updated_at": "2024-02-06T12:44:21.438Z", | |
"id": 5293993, | |
"schema": { | |
"headline": { |
This file contains 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
let description = { | |
"Yoda" : "Jedi", | |
"Anakin" : "Jedi", | |
"Obi-One" : "Jedi", | |
"Luke" : "Jedi", | |
"Ray" : "Jedi", | |
"Finn" : "Jedi", | |
"Kylo Ren" : "Jedi", | |
"Chewbacca" : "Wookiee", | |
"R2-D2" : "Astromech droid", |
This file contains 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
<html> | |
<body> | |
<h1>Message changes depends on the day you got.</h1> | |
<button onclick="changeDay()">Click Me</button> | |
<h3 id="message"></h3> | |
<script> | |
function changeDay() { |
This file contains 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
let name = 'Ray'; | |
let description = ''; | |
switch(name) { | |
case 'Yoda': | |
case 'Anakin': | |
case 'Luke': | |
case 'Obi-One': | |
case 'Ray': | |
case 'Finn': |