Skip to content

Instantly share code, notes, and snippets.

View batial's full-sized avatar
🌚
Learning JAVA

Sebastián Debesa batial

🌚
Learning JAVA
View GitHub Profile
@batial
batial / almacenar.js
Created August 25, 2022 00:07 — forked from xqft/almacenar.js
Trabajo en clase sobre Entrega 2, JaP, 24/08
document.addEventListener('DOMContentLoaded', () => {
const input = document.querySelector('#item');
const btnAgregar = document.querySelector('#agregar');
const btnTitulo = document.querySelector('#titulo');
const btnSeparador = document.querySelector('#separador');
const btnLimpiar = document.querySelector('#limpiar');
const lista = document.querySelector('#contenedor');
let listado = window.localStorage.getItem('lista');
listado = JSON.parse(listado)