0

I just can't seem to wrap my head around the proposal.

How can I have an array that displays which button was pressed and at what time.

The simpler the better as I'm still learning Javascript, thanks guys.

This is what I've come up with so far

var getTime = (document.getElementById("bass") + Date.now());
Joe
  • 43
  • 1
  • 11
  • 1
    Why this is tagged with `android` then? because mobile devices and tablets have `tap`|`[click]`! – Dhaval Marthak Mar 20 '14 at 13:30
  • Because my tap is ontouchstart, I'm developing an app for android through phonegap, I maybe should of said that. – Joe Mar 20 '14 at 13:34
  • document.getElementById("bass") That's literally all I can think of, and that's just 1 of 4 ID's – Joe Mar 20 '14 at 13:36

1 Answers1

0

You should check the way you get the Date, check this:

How do I get the current date in JavaScript?

Regards

Community
  • 1
  • 1
DuSant
  • 970
  • 12
  • 25