# CSP 23-24 Unit 4 Lesson 8 Error Aleret

**URL:** <https://forum.code.org/t/csp-23-24-unit-4-lesson-8-error-aleret/38720>\
**Category:** Unit and Lesson Discussion\
**Created:** [November 28, 2023, 3:43pm UTC](https://forum.code.org/t/csp-23-24-unit-4-lesson-8-error-aleret/38720 "2023-11-28T15:43:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![randle.moore](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/randle.moore/32/4866_2.png) [@randle.moore](https://forum.code.org/u/randle.moore)\
**Post date:** [November 28, 2023, 3:43pm UTC](https://forum.code.org/t/csp-23-24-unit-4-lesson-8-error-aleret/38720/1 "2023-11-28T15:43:28Z")

</div>

My student is getting an error alert but the code runs fine.

Can anyone see what the problem is in line 23?

 ![line 23 not a string error alert](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/1/19ac33d5dd822f6128f4cc769a4aba3cd3e21492.png)

---

<div class="post-metadata">

**Author:** ![varrience](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/varrience/32/8042_2.png) [@varrience](https://forum.code.org/u/varrience)\
**Post date:** [November 29, 2023, 4:01am UTC](https://forum.code.org/t/csp-23-24-unit-4-lesson-8-error-aleret/38720/2 "2023-11-29T04:01:37Z")

</div>

seems like some variables aren’t defined in your students program resulting in  
“undefined” being passed through as a parameter leading to the warning that it does not accept that type of data in order to ensure that this is fixed simply remove the variables that haven’t been defined or initialize them at the top of there program

```auto
var color = "white";
var fontFamily = "Arial";
var fontsize = "20px";

```

your student could have also made the mistake of not using the correct variable that had a value but was case sensitive though it seems like the first case is more likely i can’t really tell because i can’t see the full project for myself…  
Though I hope this helps
