Skip to content

Instantly share code, notes, and snippets.

View peterayeniofficial's full-sized avatar
🏠
Working from home

Peter Ayeni peterayeniofficial

🏠
Working from home
View GitHub Profile
@peterayeniofficial
peterayeniofficial / index.html
Created September 30, 2020 15:57
Basic Hello World
<html>
<body>
<div id="root"></div>
</body>
<script type="module">
// Select the Div with an ID of 'root'
const rootDiv = document.getElementById("root")
// add 'Hello World' text to it
rootDiv.textContent = "Hello World"
class Customer
attr_accessor :first_name, :last_name
@@all = []
def initialize(name)
name = name.split()
@first_name = name[0]
@last_name = name[1]
@@all << self