Skip to content

Instantly share code, notes, and snippets.

View azamsharp's full-sized avatar

Mohammad Azam azamsharp

View GitHub Profile
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)
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",
@azamsharp
azamsharp / .js
Last active July 27, 2021 22:51
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
},
{
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)
for(let index = 0; index < comments.length; index++) {
let comment = comments[index]
console.log(comment.id)
console.log(comment.email)
console.log(comment.name)
}
// access textbox
let fullNameTextBox = document.getElementById("fullNameTextBox")
// access button
let submitButton = document.getElementById("submitButton")
//fullNameTextBox.value // ???
/*
function submitButtonPressed() {
<html>
<head>
</head>
<body>HELLO JAVASCRIPT
<script src="js/app.js"></script>
//
// ContentView.swift
// DemoHostingC
//
// Created by Mohammad Azam on 4/18/20.
// Copyright © 2020 Mohammad Azam. All rights reserved.
//
import SwiftUI
<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>
<html>
<head>
<style>
.page-background {
background-color: yellow;
font-size: 20px;
color: purple;