I was trying this Beginner tutorial on smart contracts and solidity. I typed truffle compile, truffle migrate and they ran without any error . when i opened truffle console and typed TodoList = await TodoList.deployed()
as per the tutorial i got error Undefined
var TodoList = artifacts.require(".TodoList.sol");
module.exports = function(deployer) {
deployer.deploy(TodoList);
}