Demo entry 5579790

an array of integers

   

Submitted by anonymous on Jul 03, 2016 at 03:28
Language: JavaScript. Code size: 165 Bytes.

var arrayOfIntegers = [1, 2, 3];  
if(arrayOfIntegers.length > 5) {  
    var message = "Your array contains more than 5 integers";  
}  
console.log(message);  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).