B
B
Brunetgk2018-03-15 14:52:00
JavaScript
Brunetgk, 2018-03-15 14:52:00

How to write your short $(function () {}) implementation for window.onload?

There is a task for JS - Write your own short implementation $(function () {}) for window.onload.
Please explain, do I need to write the implementation of window.onload in JQuery?
What does the '$' sign in front of a function mean? Is this a jQuery function notation?

Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2018-03-15
@Stalker_RED

Please explain, do I need to write the implementation of window.onload in JQuery?
Are you seriously suggesting that we guess what is written in your assignment?
What does the '$' sign in front of a function mean? Is this a jQuery function notation?
No. This is a reference to a jQuery object. Synonym, if you will.

L
leni_m, 2018-03-15
@leni_m

$(function () {})so they write in Jquery
window.onloadso they write in pure js
They do the same thing - they execute the code inside after the page has loaded.
Most likely you have a task - to write an analogue of this algorithm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question