アットウィキロゴ

dsge08

<html>
<head>
<title>練習</title>
</head>
<body>
<script type="text/javascript">
 
var a,beta;
 
a=0.33;
 
function Person() {
 
ks=Math.pow(a,2)+mx(a);
 
beta=ks;
 
}
 
 
function mx(x){
var c1;
c1=5+x;
return c1;
}
Person.prototype.say = function(){
alert(beta);
};
 
Person.prototype.say2 = function(){
alert(a);
};
 
var tax = new Person();
 
tax.say(); 
 
 
</script>
</body>
</html>
最終更新:2013年09月18日 19:13