RSS Feed/News ChatGPT rewriting JavaScript

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,648
Points
823

Reputation:

For devs rewriting jQuery into native JavaScript, it seems like ChatGPT can be helpful. I certainly wouldn't blindly let it rewrite a bunch of stuff, but it can be a useful tool for converting JavaScript as a base for you to review/revise/make better.

For example:
JavaScript:

Code:
$(document).on('xf:page-load-start',function(e,i) {
    XF.config.time.now = Math.floor(new Date().getTime() / 1000);
    let c = XF.Cookie.get('csrf');
    $.ajaxSetup({
        async: false
    })...

Read more

Continue reading...
 
Status
Not open for further replies.
Top