function
Obj(arg0, arg1) {
this
.val = arg0;
.str = arg1;
.fun =
() {
for
(
var
i=0; i<
.val; i++) {
document.write(
.str +
'<br />'
);
}
funMake() {
O =
new
Obj(5,
'Hello World!'
O.fun();
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
funMake();