/JS-edu

A repo for education purposes

Primary LanguageJavaScript

JS-edu

A repo for educational purposes

Task 1 Write a JavaScript program to check from two given integers, if one is positive and one is negative. Log the output in the console.

Task 2 Write a JavaScript program where the program takes a random integer between 1 to 10, the user is then prompted to input a guess number. If the user input matches with guess number, the program will display a message "Good Work" otherwise display a message "Not matched"

Task 3 Create HTML form and write a JavaScript program to calculate multiplication and division of two numbers (input from user).

Task 4 Write a JavaScript program to reverse the elements of an array from a given starting position n with a given amount of steps m Example input:

[3, 4, 5, 7, 15]
2 
1 

Example output:

[3, 4, 7, 5, 15]

Task 5 Write a JavaScript program to test if a given array of integers contains 30 and 40 twice