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
Collaborator

No description provided.

{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
Copy link
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
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
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
Copy link
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
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

### Langage et Package

- TypeScript
- Nodejs
Copy link
Owner

Choose a reason for hiding this comment

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

why ?

Copy link
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

$ "files": ["src/index.ts", "src/sin_cos.ts"]
```

## Tester son fichier JS
Copy link
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
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

let affichageResultat = document.querySelector('#resultat');
let resultat;

function multiplication(a, b) {
Copy link
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
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

@@ -0,0 +1,23 @@
"use strict";
Copy link
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
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

<button class="button-multiplication">Multiplier</button>
<p id="resultat"></p>

<script type="module" src="dist/index.js"></script>
Copy link
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
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

@@ -0,0 +1,30 @@
let inputA = document.querySelector('#numberA') as HTMLInputElement;
Copy link
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
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

let resultat: number


function multiplication(a: number, b: number) {
Copy link
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
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


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

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

Choose a reason for hiding this comment

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

thanks

tsconfig.json Outdated
"strict": true
},
"files": ["src/index.ts"]
"files": ["src/index.ts", "src/multiplication.ts"]
Copy link
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
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
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