Posts by Rafael Fachinelli • 21 points
3 posts
-
1
votes1
answer55
viewsQ: How to create a type from a variable in Typescript?
I need to create a type that, according to the variable value, uses a specific type. I have the following constant variables: const NEW = 'NEW_PROJECT'; const DELETE = 'DELETE_PROJECT'; The code is…
-
0
votes0
answers32
viewsQ: How does Hoisting work in Javascript?
The site w3schools informs that variable and function statements are moved to the top of the code. Already the site of MDN says that Hoisting does not actually move statements to the top, but rather…
javascriptasked Rafael Fachinelli 21 -
-2
votes1
answer55
viewsQ: How to use a column calculated in the WHERE clause of SQL?
I have the table Employees who own a field called salary. I need to list only employees who are below the average of all employees' salaries registered in the database. My SQL command is like this…
sqlasked Rafael Fachinelli 21