Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calc function with test #42

Open
wants to merge 19 commits into
base: Chalunin_Artem_Romanovich
Choose a base branch
from

Conversation

temawan2gecko
Copy link

No description provided.

const xDeltaLocal: number = 0.4;
const xArray: number[] = [1.9, 2.15, 2.34, 2.74, 3.16];

function getBaseLog(x: number, y: number) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавь возвращаемый тип

return Math.log(y) / Math.log(x);
}

type List = number[];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не вижу смысла в этом объявлении типа

it('should return 5 as result of 2 and 3 sum', () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот тест можно удалить, это пример

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants