Skip to content

Feat/multiplication#2

Open
OphelieThomas33 wants to merge 65 commits intomainfrom
feat/multiplication
Open

Feat/multiplication#2
OphelieThomas33 wants to merge 65 commits intomainfrom
feat/multiplication

Conversation

@OphelieThomas33
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread .vscode/settings.json
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
Copy link
Copy Markdown
Collaborator

@ABBA-74 ABBA-74 Jan 20, 2023

Choose a reason for hiding this comment

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

add to .gitignore ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok it's done

@ABBA-74 ABBA-74 closed this Jan 20, 2023
Comment thread .vscode/settings.json
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

add to .gitignore

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it's done

Comment thread README.md
### Langage et Package

- TypeScript
- Nodejs
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the rebase didn't work for this file, so I copied the main

Comment thread README.md
$ "files": ["src/index.ts", "src/sin_cos.ts"]
```

## Tester son fichier JS
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

same here !

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the rebase didn't work for this file, so I copied the main

Comment thread dist/multiplication.js Outdated
let affichageResultat = document.querySelector('#resultat');
let resultat;

function multiplication(a, b) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

you can use arrow function instead
const multiplication = (a,b) => {

}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok I changed

Comment thread dist/multiplication.js
@@ -0,0 +1,23 @@
"use strict";
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

add dist to .gitignore

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it's done

Comment thread index.html
<button class="button-multiplication">Multiplier</button>
<p id="resultat"></p>

<script type="module" src="dist/index.js"></script>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

<script type="module" src="index.js"></script>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it's done

Comment thread src/multiplication.ts Outdated
@@ -0,0 +1,30 @@
let inputA = document.querySelector('#numberA') as HTMLInputElement;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

test document.getElementbyId()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it's done

Comment thread src/multiplication.ts Outdated
let resultat: number


function multiplication(a: number, b: number) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

prefer arrow function
const multiplication= (a: number, b: number) => {
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it's done

Comment thread src/multiplication.ts Outdated

function multiplication(a: number, b: number) {

if (a == null || b == null || isNaN(a) || isNaN(b)) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

thanks

Comment thread tsconfig.json Outdated
"strict": true
},
"files": ["src/index.ts"]
"files": ["src/index.ts", "src/multiplication.ts"]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

we can generalise ["src/*.ts]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok I changed

@AlaAtrash AlaAtrash reopened this Jan 20, 2023
@AlaAtrash
Copy link
Copy Markdown
Owner

to do

seb76370 and others added 30 commits January 27, 2023 20:32
…ow function - change querySelector to getElementById"

This reverts commit 9145e68.
…ow function - change querySelector to getElementById"

This reverts commit 9145e68.
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.

5 participants