HTML Code
<ul class="nav-sub">
<li><a href="#">Change Color</a></li>
<li><a href="#">Use Component</a></li>
<li><a href="#">How Search Works</a></li>
<li><a href="#">Empty Page</a></li>
</ul>
Javascript Code
// JavaScript program to find the area of a triangle
let side1 = prompt('Enter side1: ');
let side2 = prompt('Enter side2: ');
let side3 = prompt('Enter side3: ');
// calculate the semi-perimeter
let s = (side1 + side2 + side3) / 2;
//calculate the area
let areaValue = Math.sqrt(
s * (s - side1) * (s - side2) * (s - side3)
);
console.log(
`The area of the triangle is ${areaValue}`
);
Python Code
# Python program to swap two variables
x = 5
y = 10
# To take inputs from the user
#x = input('Enter value of x: ')
#y = input('Enter value of y: ')
# create a temporary variable and swap the values
temp = x
x = y
y = temp
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
Kotlin Code
import java.util.ArrayList
fun main(args: Array) {
val list1 = ArrayList()
list1.add("a")
val list2 = ArrayList()
list2.add("b")
val joined = ArrayList()
joined.addAll(list1)
joined.addAll(list2)
println("list1: $list1")
println("list2: $list2")
println("joined: $joined")
}