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

Project DOM #23

Open
mhaidarhanif opened this issue Apr 12, 2019 · 5 comments
Open

Project DOM #23

mhaidarhanif opened this issue Apr 12, 2019 · 5 comments

Comments

@mhaidarhanif
Copy link

Submit here.

@mhaidarhanif
Copy link
Author

mhaidarhanif commented Apr 12, 2019

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Project JavaScript</title>

    <link rel="stylesheet" href="index.css" />
  </head>
  <body>
    <ul>
      <li><span>Sleeping</span></li>
      <li>Coding</li>
      <li>Eating</li>
      <li>Mancing</li>
    </ul>

    <script src="index.js"></script>
  </body>
</html>
const todosElements = document.getElementsByTagName('li')

const todosList = Array.from(todosElements)

const todos = todosList.map(element => {
  return element.innerText
})

console.log(todos)

@rizariza69
Copy link

https://github.com/rizariza69/project-javascript-body-mass-index
https://riza-project-body-mass-index.netlify.com/

@dickymr
Copy link

dickymr commented Apr 16, 2019

https://dickymr-body-mass-index.netlify.com/
https://github.com/dickymr/project-body-mass-index

@BintangSaputra
Copy link

https://calculatorcalorie.netlify.com/
https://github.com/BintangSaputra/javascript-bmr-project

@yevgenysiregar
Copy link

yevgenysiregar commented Apr 26, 2019

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

No branches or pull requests

5 participants