I want to get 2 smallest numbers out of 3 numbers and then want to display that 2 smallest numbers on the screen simply like in PHP we use simply echo to display the value on the screen. But with this code I get only one smallest value need to get and display 2 smallest values on the web page.
<script type="text/javascript">
var a = 5;
var b = 4;
var c = 6;
var d = Math.min(a,b,c);
</script>
so the result should be "First smallest: 4" and "second smallest: 5"
Put these first & second lowest values in different variables like var first = 4 & var second = 5 and then should display like with PHP code <?php echo $first;?>
and <?php echo $second ; ?>
.