practice: add questions on JavaScript strings

Aberta Para iniciantes
#36 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
88/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript, json
Domínio
content

Direção de pesquisa

Leia as perguntas de programação existentes em shared/practice/questions.json e siga o formato delas. Adicione três perguntas originais sobre strings em JavaScript, com quatro opções, um answerId válido, uma explicação, topicId definido como programming e dificuldade fácil ou média. Execute npm ci e npm test; o trabalho estará concluído quando as verificações do banco de perguntas passarem e os IDs existentes permanecerem inalterados.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement good first issue

What to add

Add 3 original multiple-choice questions on JavaScript strings to the programming topic in shared/practice/questions.json.

The programming topic has 6 questions and none of them cover JavaScript strings yet. Some ideas (write your own wording and numbers):

  • the value of "hello".length or a character at an index
  • what a method such as toUpperCase() or slice() returns
  • whether a method changes the original string

Look at the existing programming questions in the file first and follow the same shape.

Requirements

  • The questions must be your own. Do not copy from books, websites, coaching material, or past papers.
  • Each question has exactly 4 options (a to d), one answerId, and an explanation that shows the reasoning or working, not only the answer.
  • Use "topicId": "programming" and "difficulty": "easy" or "medium". A mix of both is welcome.
  • Give each question a new lowercase ID, for example programming-string-index. Do not change existing IDs.
  • Indian context is welcome (Rs, km, common names).

Check your change

npm ci
npm test

npm test checks the question bank (unique IDs, four distinct options, a valid answer). If you have the .NET SDK, also run dotnet test backend/ProCoderJi.slnx --configuration Release. If you don't, CI runs the backend tests on your pull request.

Before you start

Leave a comment here when you start so others can pick a different issue. New to open source? Start with CONTRIBUTING.md. Questions are welcome in the comments.

Linguagem predominante
TypeScript
Estrelas
1
Forks
1
Merge médio
8h 58min
PRs com merge (30d)
37

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de procoderji-com/procoderji

Todas as issues de procoderji-com/procoderji

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.