5. How to compile and deploy smart contract on JavaScriptVM

5. How to compile and deploy smart contract on JavaScriptVM

 

pragma solidity ^0.4.18;

 

contract student {

string name;

uint age;

function setStudentDetails(string _name, uint _age) public{

name=_name;

age=_age;

}

function getStudentDetails() public view returns(string, uint){

return (name, age);

}

}