/    Sign up×
Community /Pin to ProfileBookmark

need a code writer

please delete thread

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@tabzterFeb 04.2006 — I dont know why but this sounds tooo much like HOMEWORK that you've been assigned. You should pay attention in class.
Copy linkTweet thisAlerts:
@lumberjake2Feb 04.2006 — There ya go

<i>
</i>var str = "true", num="true", res;

while(str == "true" || str.length &lt; 8)
{
str = prompt("Enter a word with 8 letters or above");
}

while(num == "true" || num &gt; str.length)
{
num = prompt("Enter a number smaller than " + (str.length +1));
}

res = str.charAt(num - 1);

for(var i = 0; i &lt;= str.length - 2; i++)
{
res += str.charAt(num - 1);
}

alert(res);
Copy linkTweet thisAlerts:
@CinderellaFeb 04.2006 — I dont know why but this sounds tooo much like HOMEWORK that you've been assigned. You should pay attention in class.[/QUOTE]

They have classes on this stuff?
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYFeb 04.2006 — They have classes on this stuff?[/QUOTE]
apparently.. :o
Copy linkTweet thisAlerts:
@CinderellaFeb 04.2006 — Woah...I've heard of basic computer classes, that teach you how to use the computer...but never one that required this stuff.

Sweet....I guess....
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYFeb 04.2006 — how do you think non-autodidact people learn programming? ?
Copy linkTweet thisAlerts:
@__eno____authorFeb 04.2006 — yeah is homework. but was 80 miles away during these parts of my course. so kinda stuck
×

Success!

Help @__eno____ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...