function saveChatHistory(sessionId, message) { const chatData = JSON.parse(sessionStorage.getItem(sessionId)) || []; chatData.push(message); sessionStorage.setItem(sessionId, JSON.stringify(chatData)); }function loadChatHistory(sessionId) { const chatData = JSON.parse(sessionStorage.getItem(sessionId)) || []; chatData.forEach(message => { // Logic to display message console.log(message); }); }// On page load, load chat history window.onload = function () { const sessionId = sessionStorage.getItem('sessionId') || `session_${Date.now()}`; sessionStorage.setItem('sessionId', sessionId); loadChatHistory(sessionId); };// Save chat history when sending a message function sendMessage(message) { const sessionId = sessionStorage.getItem('sessionId'); saveChatHistory(sessionId, { user: message }); // Send the message to the backend... }

Do’s & Dont’s for TDS Returns

Given below are some dos and don’t for the filing of TDS returns: Dos Ensure that TDS return is filed with the same TAN against which TDS payment has been made. Ensure that correct challan particulars including CIN and amount is mentioned. Correct PAN of the deductee is mentioned. Correct section is quoted against each…

Read More