js bmi calculator

js bmi calculator 3

// function that caclulates BMI function bmiCalc(weight, height){ var bmiResult = weight / Math.pow(height, 2); var roundedResult = Math.floor(bmiResult); return …

Read more

jquery is numeric

jquery is numeric 4

according to http://api.jquery.com/jQuery.isNumeric/ it’s :jQuery.isNumeric(value) so, it should be $.isNumeric($(“#EmpNum”).val()) Here is what the above code is Doing: 1. It’s …

Read more

async function get api

async function get api 5

async function getPosts() { const response = await fetch(‘https://jsonplaceholder.typicode.com/posts?_limit=3&_page=1’); const data = await response.json(); return data Here is what the …

Read more

spreadjs autofit column with minimum

spreadjs autofit column with minimum 6

var _oldFn = GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth; GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth = function() { let minWidth = 100; let width = _oldFn.apply(this, arguments); return Math.max(minWidth, width); …

Read more