# Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

**URL:** <https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-2/729882>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [January 14, 2025, 1:32pm UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-2/729882 "2025-01-14T13:32:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_one\_1988](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@the\_one\_1988](https://forum.freecodecamp.org/u/the_one_1988)\
**Post date:** [January 14, 2025, 1:32pm UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-2/729882/1 "2025-01-14T13:32:39Z")

</div>

### Tell us what’s happening:

how to get VacancyService to work Laravel says Vacancy service does not exist and undefined variable $review\<?php

namespace App\Http\Controllers;

use App\Services\ReviewService; // Add this line  
use Illuminate\Http\Request;  
use Illuminate\Support\Facades\Gate;  
use App\Models\Review;

class ReviewController extends Controller  
{  
protected $reviewService;

```
public function __construct(ReviewService $reviewService)
{
    $this->reviewService = $reviewService;
}

public function store(Request $request, $id)
{
    $data = $request->validate(

```

### Your code so far

```javascript

// User Editable Region

let char hh

bbbbbbbbbbbbbbbbbbbb
      

// User Editable Region

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0`

### Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-introductory-javascript-by-building-a-pyramid-generator/step-2)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 14, 2025, 1:39pm UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-2/729882/2 "2025-01-14T13:39:21Z")

</div>

are you asking for help for the step 2 of the pyramid generator, or not?

if not, you may want to edit your post and title to make it clear

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 16, 2025, 1:39am UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-2/729882/3 "2025-07-16T01:39:27Z")

</div>

Closed on July 16, 2025, 1:39am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
