var
res;
str0 =
'128'
;
str1 =
'256'
str2 =
'512'
strBin =
'11111111'
strOct =
'0377'
strHex =
'0xFF'
str3 =
'0.2802'
str4 =
'800px'
function
funMake() {
res = Number(str0);
document.write(res +
'<br />'
);
res = str1 - 0;
res = parseInt(str2);
res = parseInt(strBin, 2);
res = parseInt(strOct, 8);
res = parseInt(strHex, 16);
res = parseFloat(str3);
res = parseInt(str4);
}
var res; var str0 = '128'; var str1 = '256'; var str2 = '512'; var strBin = '11111111'; var strOct = '0377'; var strHex = '0xFF'; var str3 = '0.2802'; var str4 = '800px'; function funMake() { res = Number(str0); document.write(res + ''); res = str1 - 0; document.write(res + ''); res = parseInt(str2); document.write(res + ''); res = parseInt(strBin, 2); document.write(res + ''); res = parseInt(strOct, 8); document.write(res + ''); res = parseInt(strHex, 16); document.write(res + ''); res = parseFloat(str3); document.write(res + ''); res = parseInt(str4); document.write(res + ''); }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
funMake();