Javascript-Logical Problems

Easy

Ex.1

Given a number return its complete multiplication table. For example:

  • Input: 5
  • Output:
Table of 5
5 x 1 = 5
5 x 2 = 10
(...)
5 x 10 = 50

Ex.2

Given a String check if it is a palindrome or not (they are read the same forwards and backwards), for example Bob, Pop, etc... Do not take into account spaces or symbols.

  • Input: "otto"
  • Output: true