/DOM-Assignment

Basic DOM-manipulation assignments - FS-JS Batch

Primary LanguageJavaScript

Dom Manipulation Assignment

1. Webiste Name: Dev To

Topics

- Query Selctory, Inner HTML

Sample Image

Sample One

Tasks

    Target the Top description div and change the DEV Community to <Your_Name> and description to your passion

Output

Output

My Sol:

Solution

2. Website Name: Apple

Task

Store

Fetch all the product name and store in an array

Output

['iPhone', 'Mac', 'iPad', 'Watch', 'AirPods', 'Music', 'TV']

My Sol:

Solution

3. Webiste Name: Youtube Support

Topics

- Get Element By Id, Create Element, Create Text Node, Append Child

Sample Image

Sample One

Tasks

 Add another FAQ 'My New FAQ' to the list

Output

Output

My Sol:

Solution

4. Webiste Name: OnePlus

Topics

 Query Selector, InnerText

Sample Image

Sample One

Tasks

  Change the contact number

Output

Output

My Sol:

Solution

5. Webiste Name: Samsung

Topics

   getElementById, createElement, InnerText, append, setAttribute

Sample Image

Sample One

Tasks

 Target the main div of card and change the Button text to Check out

Output

Output

My Sol:

Solution

6. Webiste Name: Adidas

Topics

-   Query Selector, Event listeners, Changing Styles

Sample Image

Sample One

Tasks

 Target the search box and on hover change thebackground color to red.

Output

Output

My Sol:

Solution

7. Webiste Name: MDN Web Docs

Topics

   Form, Value, Submit

Sample Image

Sample One

Tasks

 To Search a topic in the MDN Search bar.
 First add a text to search in the search bar and then hit the submit search button to search the docs using DOM

Output

Output

My Sol:

Solution

8. Webiste Name: Google

Topics

   Remove Elements

Sample Image

Sample One

Tasks

 Remove alternate languages from the home page languages listed

Output

Output

My Sol:

Solution

9. Webiste Name: Code Wars

Topics

   Change Font Family, Color of Text.

Sample Image

Sample One

Tasks

Change the font family of the text to monospace and text color to the logo’s background color.

Output

Output

My Sol:

Solution

10. Webiste Name: Freecodecamp

Topics

   querySelector, mouseover, click eventListener,  callback function, style,

Sample Image

Sample One

Tasks

Target the button and change background colour on mouseover

Output

Output

My Sol:

Solution

11. Webiste Name: realme

Topics

   querySelector,style,background-image

Sample Image

Sample One

Tasks

change the realme logo to ineuron logo

Output

Output

My Sol:

Solution

12. Webiste Name: Github

Topics

   querySelector,style,background-Color

Sample Image

Sample One

Tasks

 change the background colour of the button to blue.

Output

Output

My Sol:

Solution

13. Webiste Name: Hackerrank

Topics

   querySelector,innerHtml

Sample Image

Sample One

Tasks

Target the top description and change “Matching developers with great companies” to ‘JSBOOTCAMP“.

Output

Output

My Sol:

Solution

14. Webiste Name: Asus

Topics

  querySelector,style,font-size

Sample Image

Sample One

Tasks

   change the fontsize of “Hot Deals” to 80px

Output

Output

My Sol:

Solution

15. Webiste Name: Dell

Topics

  querySelector,style.textAlign

Sample Image

Sample One

Tasks

   Convert the text “G15 Gaming Laptop” from left to right

Output

Output

My Sol:

Solution

16. Webiste Name: Vercel

Topics

 querySelector,innerHTMl

Sample Image

Sample One

Tasks

  change the heading “Start with the developer” to “Start with Scratch”

Output

Output

My Sol:

Solution

17. Webiste Name: Sony

Topics

querySelector,innerHTMl

Sample Image

Sample One

Tasks

 change the button text To current Date.

Output

Output

My Sol:

Solution

18. Webiste Name: Philips

Topics

 querySelector,style,backgroundcolor

Sample Image

Sample One

Tasks

change the background colour blue to orange

Output

Output

My Sol:

Solution

19. Webiste Name: Canon

Topics

      querySelector,src

Sample Image

Sample One

Tasks

extract the canon logo

Output

Output

My Sol:

Solution

20. Webiste Name: Oppo

Topics

      querySelector,style,color

Sample Image

Sample One

Tasks

  Change the description colour black to orange

Output

Output

My Sol:

Solution