const bondFilms = [
{
title: "Skyfall",
year: 2012,
actor: "Daniel Craig",
gross: "$1,108,561,008",
},
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
{ | |
"quotes":[ | |
{ | |
"quote": "Three things cannot be long hidden: the sun, the moon, and the truth.", | |
"author": "Shakyamuni Buddha" | |
}, | |
{ | |
"quote": "An idea that is developed and put into action is more important than an idea that exists only as an idea.", | |
"author": "Shakyamuni Buddha" | |
}, |
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
.line-clamp{ | |
display: -webkit-box; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
} |
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
<?php | |
function add_parent_styles() { | |
wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css'); | |
} | |
add_action('wp_enqueue_scripts', 'add_parent_styles'); |
Write a function that adds a string before each item in an array using a forEach loop and a helper function that's colled inside of the forEach loop.
const veggies = ["broccoli", "spinach", "cauliflower", "broccoflower"];
const politelyDecline = (veg) => {
console.log("No " + veg + " please. I will have pizza with extra cheese.");
};
const declineEverything = (veggies) => {
veggies.forEach( veg => {
politelyDecline(veg)
const crazyObject = {
taco: [{meat: 'steak',
cheese: ['panela', 'queso', 'chihuahua']},
{meat: 'chicken',
salsa: ["pico", "hot", "hotter", "really hot", "really really hot", "omg my mouth is burning"]},
],
larry: {
nicknames: ["LD", "Chicken Teriyaki Boyyyyyy"],
//wrapping div
const wrapper = document.createElement("div")
document.body.appendChild(wrapper);
wrapper.style.display = "flex"
wrapper.style.alignItems = "center"
wrapper.style.justifyContent = "center"
wrapper.style.width ="100%"
const items = ["rock", "paper", "scissors"]
function game(userInput) {
let computerInput = items[Math.floor(Math.random() * items.length)]
console.log(computerInput)
if (computerInput === userInput) {
return "This is a tie"
} else if (computerInput === "rock") {
NewerOlder