# Question about function words()

**URL:** <https://forum.kirupa.com/t/question-about-function-words/642175>\
**Category:** Uncategorized\
**Created:** [March 21, 2020, 11:47pm UTC](https://forum.kirupa.com/t/question-about-function-words/642175 "2020-03-21T23:47:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephanie0419](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@stephanie0419](https://forum.kirupa.com/u/stephanie0419)\
**Post date:** [March 21, 2020, 11:47pm UTC](https://forum.kirupa.com/t/question-about-function-words/642175/1 "2020-03-21T23:47:30Z")

</div>

Hello, why is it that when I try to code function drawText(), it will not run?

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [March 22, 2020, 1:08am UTC](https://forum.kirupa.com/t/question-about-function-words/642175/2 "2020-03-22T01:08:26Z")

</div>

Can you post your full code? Also, what tutorial are you using? We will take a look 😀

---

<div class="post-metadata">

**Author:** ![stephanie0419](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@stephanie0419](https://forum.kirupa.com/u/stephanie0419)\
**Post date:** [March 23, 2020, 12:27am UTC](https://forum.kirupa.com/t/question-about-function-words/642175/3 "2020-03-23T00:27:03Z")

</div>

I’m using the JavaScript Absolute Beginner’s Guide. I’m on Ch. 5

```
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Loops!</title>

    <style>

    </style>
</head>

<body>
    <script>
        for (let i = 0; i > 10; i++) {
            saySomething();
        }

        function saySomething() {
            document.writeIn("hello!")
        }
    </script>
</body>

</html>
```

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [March 23, 2020, 12:35am UTC](https://forum.kirupa.com/t/question-about-function-words/642175/4 "2020-03-23T00:35:58Z")

</div>

You were very close. The `document.writeIn("hello!")` is actually `document.writeln("hello!")`. This is a very subtle spelling mistake.

It has to do with the spelling of **writeln**. It is short for writeline. What you have as a capital “I” should actually be a lowercase “L” 🙂

Once you make that one letter change, your code should work!
