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
speed: 45 | |
special-defense: 65 | |
special-attack: 65 | |
defense: 49 | |
attack: 49 | |
hp: 45 |
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
"stats": [ | |
{ | |
"base_stat": 45, | |
"effort": 0, | |
"stat": { | |
"name": "speed", | |
"url": "https://pokeapi.co/api/v2/stat/6/" | |
} | |
}, | |
{ |
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
// grab the things we need ---------- | |
const pokemonContainer = document.querySelector(".pokemon-container"); | |
const formEl = document.querySelector("form"); | |
const inputEl = document.querySelector("input[type=text]"); |
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
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap"); | |
body { | |
padding: 30px; | |
min-height: 100vh; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
background: url("https://i.imgur.com/zwp2EXP.png") center top; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Poke.mon</title> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
</head> | |
<body> | |
<form> | |
<input type="text" placeholder="Search Pokemon" /> |
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
const { Builder, By, until } = require('selenium-webdriver'); | |
const { Options, Context } = require('selenium-webdriver/firefox'); | |
const addonFileLocation = "D:\React\example\web-ext-artifacts\bookmark_it_-1.1.zip"; | |
(async function example(){ | |
const options = new Options() | |
.setPreference("extensions.legacy.enabled", true) | |
.setPreference("xpinstall.signatures.required", false); |
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
/* | |
above example | |
*/ | |
rocky.buy = function() { | |
console.log("Buy the Movie"); | |
}; | |
rocky.buy(); | |
// Buy the Movie |
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
class Movies { | |
constructor(name, releaseYear, genre, ratings) { | |
this.name = name; | |
this.releaseYear = releaseYear; | |
this.genre = genre; | |
this.ratings = ratings; | |
} | |
watch() { | |
console.log("Watch Online"); | |
} |
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
function movies(name, releaseYear, genre, ratings) { | |
this.name = name; | |
this.releaseYear = releaseYear; | |
this.genre = genre; | |
this.ratings = ratings; | |
this.watch = () => { | |
console.log("Watch Online"); | |
}; | |
} |
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 movies = new Object(); | |
console.log(movies) | |
//{} | |
movies.name = "Dead Poets Society"; | |
movies.releaseYear = 1989; | |
movies.genre = ["Drama", "Teen"]; | |
movies.ratings = { | |
IMDb: "8.1 / 10", |