Members
(nullable) author :User
- Source:
If obtained from a list of items, null; if viewed in detail, the user object containing only: avatarUrl, badge, id, name
Type:
(nullable) color :string
- Source:
The problem's theme color, sometimes null
Type:
- string
description :string
- Source:
The full description with markdown
Type:
- string
difficulty :Difficulty
- Source:
The problem difficulty
Type:
iconUrl :string
- Source:
The URL to the problem's icon
Type:
- string
id :number
- Source:
The problem's unique ID
Type:
- number
isPro :boolean
- Source:
Whether or not the problem requires SoloLearn Pro
Type:
- boolean
languages :Array.<Language>
- Source:
An array of languages the problem can be solved in
Type:
- Array.<Language>
rewardXp :number
- Source:
How much XP you get for solving the problem
Type:
- number
solvedLanguages :Array.<Language>
- Source:
The languages you have solved this problem with
Type:
- Array.<Language>
title :string
- Source:
The title of the problem
Type:
- string
Methods
(async) viewDetails(showContentopt, locationopt) → {Promise.<Problem>}
- Source:
Get the problem with the full details
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
showContent |
<optional> |
false
|
Unknown value | |
location |
<optional> |
0
|
Unknown value |
Returns:
- Type
- Promise.<Problem>