Skip to content

Instantly share code, notes, and snippets.

@johnnylaicode
johnnylaicode / assignment-2-starter-code.js
Last active March 1, 2022 01:53
Starter code for Assignment 2 - JavaScript Methods (templates)
// FOR EACH //
Array.prototype.myEach = function() {
// Place your code here.
};
// MAP //
Array.prototype.myMap = function() {
// Place your code here.
};
@johnnylaicode
johnnylaicode / index.html
Last active March 2, 2022 03:46
Starter code for Assignment 3 - Grid Maker
<!DOCTYPE html>
<html>
<head>
<title>Grid</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<button onclick="addR()">Add Row</button>
<button onclick="addC()">Add Col</button>
<button onclick="removeR()">Remove Row</button>
@johnnylaicode
johnnylaicode / SearchComponent.js
Created December 29, 2021 22:27
Demo code for fetching and display data in React
import { Component } from 'react';
import axios from 'axios';
// API: https://pokeapi.co/
class Search extends Component {
constructor(props){
super(props);
this.state = {
apiData: {
@johnnylaicode
johnnylaicode / index.html
Last active February 28, 2023 18:49
Demo code for DOM manipulation
<!DOCTYPE html>
<html>
<head>
<title>Document Title</title>
</head>
<body>
<div id="header" class="header-class">--- Header Area ---</div>
<h1 id="first-heading">Hello</h1>
<section id="container">
<ul>
@johnnylaicode
johnnylaicode / assignment-4-bank-of-react.md
Last active April 6, 2022 13:18
Assignment 4 - Bank of React (CSCI39548-WebDev-Spring22)

Assignment 4 - Bank of React

Due Date

  • Due on Thursday, 4/14, at 11:59 PM
  • You can work in groups or individually. Maximum 4 students per group. Working in groups is strongly recommended and encouraged.

How to Submit

  • Blackboard: Submit (1) the link to your GitHub repository, (2) the link to your GitHub Pages website (extra credit), and (3) your group member names on Blackboard by 11:59 PM on the due day. Each student needs to submit the assignment individually on Blackboard—even when working in a group.