Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Learning Activity 1 . 1 . 3 : JS Review and Practice Learning Objectives Refresh your JavaScript skills Learn some new JavaScript concepts and tricks

Learning Activity 1.1.3: JS Review and Practice
Learning Objectives
Refresh your JavaScript skills
Learn some new JavaScript concepts and tricks
Directions
1.Use basic JavaScript programming concepts. Download the example LA1.1.3_JS_basic.rar. Extract and open it to your development environment. Review the examples.
2.Write a program to display different types of triangles using nested loop.
3.Create a simple web application that explains for-of, for-in, for, foreach, map. Use example codes to demonstrate your answer.
4.Write a JavaScript program that determines if an input number is even or odd. Your code should run from terminal as well as browser with minor modification.
5.Write a JavaScript program that prints the factorial of any given integer. The factorial of number n equals 1\times 2\times 3\times ...\times (n-2)\times (n-1)\times n. Code should run on terminal and browser with minor modification.
6.Write a JavaScript program that displays even numbers and odd numbers in different rows. Your program should accept initial and maximum value from the user and print out all the results on the browser. For example, if the initial is 4 and maximum is 17 then your program should display all even numbers between 417 in one row and all odd numbers in another row. Write code for No.5 in LA1.1.3 and for number 5 for integer. Implement the functionality by 4 different ways (while loop, for loop, function, recursion). Save your code in one js file and run this file in node. Submit this js file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions