를 선도 수를 보여 코드 :자바 스크립트, 나는 자바 스크립트에 새로운 오전 제로
function sayHello(name, age) {
document.write (name + " is " + age + " years old.");
}
<p>Click the following button to call the function</p>
<form>
<input type="button" onclick="sayHello('abc', 010)" value="Say Hello">
</form>
<p>Use different parameters inside the function and then try...</p>
내가 'ABC으로 매개 변수를 보낸다 '와
출력 010하지만 출력에 나는 아래와 같이 점점 오전 : ABC는 8 살입니다
넌 문자열로'010' 전달한다. 또는 연결하기 전에 연령을 문자열로 변환하십시오 – Eddie