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
let taskTextBox = document.getElementById("taskTextBox") | |
let addTaskButton = document.getElementById("addTaskButton") | |
let taskList = document.getElementById("taskList") | |
// METHOD 2 | |
function removeTask2(e) { | |
// e.srcElement is a button element | |
console.log(e.srcElement) |
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
let movies = [{ | |
"Title": "Batman Begins", | |
"Year": "2005", | |
"imdbID": "tt0372784", | |
"Type": "movie", | |
"Poster": "https://m.media-amazon.com/images/M/MV5BZmUwNGU2ZmItMmRiNC00MjhlLTg5YWUtODMyNzkxODYzMmZlXkEyXkFqcGdeQXVyNTIzOTk5ODM@._V1_SX300.jpg" | |
}, { | |
"Title": "Batman v Superman: Dawn of Justice", | |
"Year": "2016", | |
"imdbID": "tt2975590", |
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
let dishes = [ | |
{ | |
"description" : "These mini cheeseburgers are served on a fresh baked pretzel bun with lettuce, tomato, avocado, and your choice of cheese. ", | |
"imageURL" : "https://resize.hswstatic.com/w_907/gif/cheeseburger-1.jpg", | |
"title" : "Mini Cheeseburgers", | |
"course" : "Starters", | |
"id" : 2, | |
"price" : 8 | |
}, | |
{ |
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
let numbers = [3,5,6,7] | |
// finalNumbers = [6,10,12,14] | |
let finalNumbers = [] | |
for(let index = 0; index < numbers.length; index++) { | |
let result = numbers[index] * 2 | |
finalNumbers.push(result) |
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
for(let index = 0; index < comments.length; index++) { | |
let comment = comments[index] | |
console.log(comment.id) | |
console.log(comment.email) | |
console.log(comment.name) | |
} |
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
// access textbox | |
let fullNameTextBox = document.getElementById("fullNameTextBox") | |
// access button | |
let submitButton = document.getElementById("submitButton") | |
//fullNameTextBox.value // ??? | |
/* | |
function submitButtonPressed() { |
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
<html> | |
<head> | |
</head> | |
<body>HELLO JAVASCRIPT | |
<script src="js/app.js"></script> |
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
// | |
// ContentView.swift | |
// DemoHostingC | |
// | |
// Created by Mohammad Azam on 4/18/20. | |
// Copyright © 2020 Mohammad Azam. All rights reserved. | |
// | |
import SwiftUI |
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
<html> | |
<head> | |
<!-- Meta always inside the head and it is required for responsive websites --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="mq.css"></link> | |
</head> |
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
<html> | |
<head> | |
<style> | |
.page-background { | |
background-color: yellow; | |
font-size: 20px; | |
color: purple; |