The code doesn’t have any error, but doesn’t work. I fill both inputs and click the button but it doesn’t print out the words.

```js
let listItem = document.getElementById('todoListItem');
let timeInputValue = document.getElementById('timeInput');
let getInputValue = document.getElementById('task');
let errorMessageInput = document.getElementById('errorMsg');

function addTask() {
  if (getInputValue.value.trim() === "") {
    errorMessageInput.textContent = "You haven't added a todo item, please add it in order to show up";

    return;
  }

  let myTodoInput = listItem.textContent;
  let myTodoTime = timeInputValue.textContent;
  let myTodoInfo = myTodoInput + ' Time ' + myTodoTime;

  myTodoInfo = getInputValue.value;
}
```

```html
<div class="myApp border border-info">
  <p class="text-center appTittle">To Do List</p>
  <div class="todoThings" id="todo">
    <ul>
      <li id="todoListItem"></li>
    </ul>
  </div>
  <div class="row mx-auto">
    <p class="mr-3 ml-3 appTaskText">Task</p><input type="text" class="appInput" id="task">
    <p class="mr-1 ml-3 appTaskText">Time</p><input type="number" id="timeInput" min="1" max="24">
  </div>
  <button type="submit" class="btn btn-info btn-sm addButton" id="add" onclick="addTask()">Add task</button>
  <p id="errorMsg" class="text-danger mt-1 mb-1"></p>
</div>
```