JSFiddle - React, Tailwind, and code Playground

by VaAlina

JavaScript

statistics = {
     total: 10,
     correct: '',
     incorrect: '',
     date: function () {
         date1: new Date(),
         date: date1.toString(),
         return date
     },
     time: function () {
         time1: new Date(),
         time: time1.toLocaleTimeString(),
         return time
     },

     PutToLocalStorage: function () {},
     GetFromLocalStorage: function () {},
     displayInTable: function () {}
 }
 var test = statistics.total;
 alert(test);