Posts by Cabeção • 1,799 points
5 posts
-
12
votes3
answers5043
viewsQ: How to block the browser console using javascript?
I would like to know how to block the user from running scripts through the browser console.
-
41
votes2
answers15929
viewsQ: How to transform numeric digits into numbers in full?
I’d like to know how to turn numerical digits in spelled numbers, as shown in the example below: 0 -> retorna "zero" 5 -> retorna "cinco" 2014 -> retorna "dois mil e quatorze" 1034 ->…
javascriptasked Cabeção 1,799 -
79
votes8
answers16873
viewsQ: How to invert a string in Javascript?
How to invert a string in Javascript? For example: Entree: "something here" Exit: "iuqa asioc amugla"
-
32
votes5
answers32771
viewsQ: How to calculate the age of a person with JS, from the date of birth?
How can I calculate a person’s age in Javascript from the date of birth? I tried something like: function idade(dia, mes, ano) { return new Date().getFullYear() - ano; } idade(11, 12, 1980); // 33…
javascriptasked Cabeção 1,799 -
11
votes2
answers2189
viewsQ: How to calculate the determinant of a javascript matrix?
Ex.: det([-1, -2, 3], [3, 3, 1], [-1, 2, -3]) // retorna 22 Ex.: det([1, 2], [2, 5]) // retorna 1 Ex.: det([8]) // retorna 8