I have list of questions. And I have a html, f.e., . Each click, changes html ".title" with a next question from objects. Click on button, I get: "Is it good to be me?", next click, I get: "Who is the best man?" and so on...
var questions = {
first: "Is it good to be me?",
second: "Who is the best man?",
third: "Do you believe?",
fourth: "Are you sexy?"
};
var txt = "";
var x;
for(x in questions) {
txt += questions[x] + "<br>";
console.log(txt)
}