Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DomJavaScriptTask

Description

  • This project consists of two main parts:
  1. Dynamically adding images to a list in an HTML document.
  2. Implementing a linear search function in JavaScript.

Features

  • Dynamically creates list items with images and appends them to an unordered list.
  • A simple linear search function that finds the index of a target number in a given array.

Usage

Adding Images to the List

This script selects an unordered list from the HTML document body and dynamically creates list items, each containing an image from a given array of image sources. The images are then appended to the unordered list.

Linear Search Function

The linear search function prompts the user to enter an array and a target number, then searches for the target number in the array and returns its index. If the target number is found multiple times, it returns the index of the last occurrence.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages