You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Crie Um algoritmo que pegue o título, o conteúdo, guarde e depois que guardado, mostre a prévia na página principal, a prévia deve conter apenas as 6 primeiras letras do conteúdo.
function createThread(){
let titleInput = document.getElementById("thread-title").value
let contentInput = document.getElementById("content-text").value
const post = {titleInput, contentInput}
let currentValues = JSON.parse(localStorage.getItem('posts')) || []