breaststroke
Programmer
Hi,
I am trying to figure out the following piece of code:
I guess it talks about a video and its duration (in time).
Does it mean that it would display the word "true" (on the console) if a quarter of the video is longer than 20 (mts?), which would the same as to say that the duration of the video is longer than 80?
Thank you very much in advance!
enjoy practicing languages at:
I am trying to figure out the following piece of code:
Code:
video = document.getElementById(""video"");
sap = video.duration / 4;
(sap > 20 ? console.log(""true"") : console.log(""false""));
I guess it talks about a video and its duration (in time).
Does it mean that it would display the word "true" (on the console) if a quarter of the video is longer than 20 (mts?), which would the same as to say that the duration of the video is longer than 80?
Thank you very much in advance!
enjoy practicing languages at: