Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikoscz/9b2967aece0eb732c67bcdb4cbd73d36 to your computer and use it in GitHub Desktop.
Save mikoscz/9b2967aece0eb732c67bcdb4cbd73d36 to your computer and use it in GitHub Desktop.
1. Write a JavaScript function to get all prime numbers from 0 to a 250;
2. Write a JavaScript program to find the area of a triangle where lengths of the three of its sides are a, b, c - where abc are configurable variables.
3. Write a JavaScript code that prints triangle based on 'size' variable. Size represents the last line of triangle.
#
### - triangle with size 5
#####
#
### - triangle with size 7
#####
#######
#
###
##### - triangle with size 9
#######
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment