How to get one random item from an array? [duplicate]

  arrays, javascript, random

I have an array below and I want to get one random item from it.

var = ["gm" , "hello" , "dance"," jump","clomb"]

Source: Ask Javascript Questions

LEAVE A COMMENT