I am a new learner of backbone.js and I tried to follow the hello world tutorial to just simply show a message on my screen. Following the tutorial video, I have a problem that the function console.log('hello world'); shows nothing. Here is my code:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title> Learning about Bacjbone.js </title>
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<script type="text/javascript" src="http://documentcloud.github.com/backbone/backbone-min.js"></script>
<script type="text/javascript">
Person = Backbone.Model.extend({
initialize: function() {
console.log('hello world');
}
});
var person = new Person();
</script>
</body>
</html>
Did I miss something or did something wrong? Please give me some idea. Thank you very much for your patient and any advises.