vimspector/support/test/chrome/www/js/test.js
2020-09-03 22:11:57 +01:00

17 lines
332 B
JavaScript

$( document ).ready( function() {
var getMessage = function() {
var msg = 'this is ';
msg += 'a test';
msg += ' message';
return msg;
};
var obj = {
test: getMessage(),
toast: function() { return 'egg'; },
spam: 'ham'
};
alert( 'test: ' + obj.test );
alert( 'toast: ' + obj.toast() );
} );