Blockly.Blocks["append_question"] = {
init: function() {
this.appendDummyInput().appendField('Ask me a question:')
.appendField(new Blockly.FieldDropdown([
['What is the date today?', today],
['What is the time now?', time],
['How are you?', 'I am good. How are you?'],
['What is JavaScript', 'JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.'],
['What is your name?', 'I am a bot created by Himandri Sharma using blockly.']
]), 'FIELDNAME');
this.setPreviousStatement(true, 'mytype');
this.setColour(230);
}
};