- Click on the edit button to get the prompt
- Get the user value and send it to the node server
- Make a new file browser.js and put a link to that in the html that is returned
- Create a public folder and create this file in it
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 express = require('express') | |
| let app = express() | |
| app.get('/', function(req, res){ | |
| res.send(` | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-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 express = require('express') | |
| let app = express() | |
| app.use(express.urlencoded({extended: false})) | |
| app.get('/', function(req, res){ | |
| res.send(` | |
| <!DOCTYPE html> | |
| <html> |
Part 1:
https://gist.github.com/tjkhara/69c635273732aea3c1536bc5e738d378
Part 2:
https://gist.github.com/tjkhara/4d9d0544dadeb02f5dbdd045e937038f
Next - Deleting items
Video link: https://www.udemy.com/course/learn-javascript-full-stack-from-scratch/learn/lecture/14422924#notes
Start by modifying this function in browser.js
// Edit functionality
document.addEventListener("click", function(e){
// Delete feature