Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

fikretellek
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

const myDate = document.createElement("p");
myDate.id = "date";
myDate.innerText = `${data.day}/${data.month}/${data.year}`;

Choose a reason for hiding this comment

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

You have used semantic HTML elements well here, great work!


const myImg = document.createElement("img");
myImg.setAttribute("src", data.img);
myImg.setAttribute("alt", data.safe_title);

Choose a reason for hiding this comment

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

Nice touch!!!

Comment on lines +22 to +24
myCont.append(myTitle, myDate, myImg, mySummary);

document.body.append(myCont);

Choose a reason for hiding this comment

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

It is very clean, very readable, and also shows the correct use of the order of the append Well done @fikretellek !

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

Successfully merging this pull request may close these issues.

2 participants