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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="learn.css"> | |
<title>Document</title> | |
</head> | |
<body> |
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
export default function contactPage() { | |
const main = document.querySelector(".main"); | |
main.innerHTML = ` | |
<div class="content"> | |
<div style="display:flex;justify-content:center;align-items: center;margin-top: 0;"> | |
<h1>Connect with us </h1><img src="../src/call.png" class="contact-img" alt="caller"> | |
</div> | |
<div class="email"> Email - EatyDeez@gmail.com</div> |
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
import './style.css' | |
import img from './img.jpeg' | |
import github from './github.png' | |
import homePage from '../src/home.js' | |
import menuPage from '../src/menu.js' | |
import contactPage from '../src/contact.js' | |
const gitImg = new Image(); | |
gitImg.src = github; | |
gitImg.classList.add("github"); |
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
const format = require('date-fns/format'); | |
const containerAddTask = document.querySelector('.container-addTask'); | |
function renderTask(taskName, taskNote, priorityValue, dueDate) { | |
const newTask = document.createElement('div'); | |
let priorityColor; | |
if (priorityValue === 'high') { | |
priorityColor = 'red'; | |
} | |
else if (priorityValue === 'medium') { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<img src="#" alt="gif"> |
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
const path = require("path"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
module.exports = { | |
experiments: { | |
topLevelAwait: true, | |
}, | |
mode: "development", | |
entry: "./src/index.js", | |
output: { |
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
const app = (() => { | |
function giveData(day) { | |
const res = {}; | |
res.weather = day.weather[0].main; | |
res.temp = day.main.temp; | |
res.feelslike = day.main.feels_like; | |
res.windSpeed = day.wind.speed; | |
res.humidity = day.main.humidity; | |
res.pop = `${day.pop * 100}%`; | |
res.icon = day.weather[0].icon; |
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
class Node{ | |
constructor(value) { | |
this.value = value; | |
this.left = null; | |
this.right = null; | |
} | |
} | |
class BST{ |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es2021": true | |
}, | |
"extends": ["airbnb-base", "prettier"], | |
"overrides": [{ | |
"files": ["**/*.test.js"], | |
"env": { |
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
/* With the call() method, you can write a method that can be used on different objects. */ | |
const person = { | |
fullName: function() { | |
return this.firstName + " " + this.lastName; | |
} | |
} | |
const person1 = { | |
firstName:"John", | |
lastName: "Doe" | |
} |
OlderNewer